diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-19 04:17:44 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-20 14:20:14 -0500 |
commit | f2a2e4910502e866833732f31ee697d15b3e56fd (patch) | |
tree | 0679969d675d9e785c6c92a3625ce8df759e0cc3 /drivers/media/video/em28xx/em28xx.h | |
parent | c4a98793a63c423c9e1af51822325969e23c16d4 (diff) |
V4L/DVB (9647): em28xx: void having two concurrent control URB's
Now that we have a polling task for IR, there's a race condition, since
IR can be polling while other operations are being doing. Also, we are
now sharing the same urb_buf for both read and write control urb
operations. So, we need a mutex.
Thanks to Davin Heitmueller <devin.heitmueller@gmail.com> for warning me.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index 1adf3d9d9bff..5956e9b3062f 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h | |||
@@ -433,6 +433,7 @@ struct em28xx { | |||
433 | 433 | ||
434 | /* locks */ | 434 | /* locks */ |
435 | struct mutex lock; | 435 | struct mutex lock; |
436 | struct mutex ctrl_urb_lock; /* protects urb_buf */ | ||
436 | /* spinlock_t queue_lock; */ | 437 | /* spinlock_t queue_lock; */ |
437 | struct list_head inqueue, outqueue; | 438 | struct list_head inqueue, outqueue; |
438 | wait_queue_head_t open, wait_frame, wait_stream; | 439 | wait_queue_head_t open, wait_frame, wait_stream; |