[media] cx231xx: cx231xx_devused is racy
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 10 Jan 2012 11:33:47 +0000 (09:33 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 11 Jan 2012 00:35:30 +0000 (22:35 -0200)
commitdb702a7af6c85d94ff32b6110b3646180f93f086
tree32a7d74fa85f6e7841886ed8517ce3de5d0de87a
parent7528cd273e14020117e6cdb6cc307f223e97c5ed
[media] cx231xx: cx231xx_devused is racy

cx231xx_devused is racy. Re-implement it in a proper way,
to remove the risk of mangling it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-cards.c