V4L/DVB (10317): radio-mr800: fix radio->muted and radio->stereo
authorAlexey Klimov <[email protected]>
Sun, 25 Jan 2009 23:07:28 +0000 (20:07 -0300)
committerMauro Carvalho Chehab <[email protected]>
Thu, 29 Jan 2009 11:00:40 +0000 (09:00 -0200)
commit7f03a5856c1c32ddc7b6b7a31bd43a4ab8e29f90
tree4b98cae8a7ff9ff9e9c3dff20348a4c867b08664
parent6d9f13c47a009ccbaf40c2e388ab349690dd8000
V4L/DVB (10317): radio-mr800: fix radio->muted and radio->stereo

Move radio->muted and radio->stereo in section where radio mutex is
locked to avoid possible race condition problems or access to memory.
Thanks to David Ellingsworth <[email protected]> for pointing to
this weak place in driver.

Signed-off-by: Alexey Klimov <[email protected]>
Signed-off-by: Douglas Schilling Landgraf <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/radio/radio-mr800.c