]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (9647): em28xx: void having two concurrent control URB's
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Nov 2008 09:17:44 +0000 (06:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 20 Nov 2008 19:20:14 +0000 (17:20 -0200)
commitf2a2e4910502e866833732f31ee697d15b3e56fd
tree0679969d675d9e785c6c92a3625ce8df759e0cc3
parentc4a98793a63c423c9e1af51822325969e23c16d4
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>
drivers/media/video/em28xx/em28xx-core.c
drivers/media/video/em28xx/em28xx-video.c
drivers/media/video/em28xx/em28xx.h