V4L/DVB (9972): v4l: usbvideo, fix module ref count check
commitbe49e368fb6e20c3a90c566b040ac3d248e2ce29
authorJiri Slaby <jirislaby@gmail.com>
Tue, 23 Dec 2008 01:38:23 +0000 (22 22:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:34 +0000 (30 09:39 -0200)
tree4589ff61765eac19f61f6bc609c67be96320d2da
parent14983d8163c78826386404b27ee5bfc72e25a9d4
V4L/DVB (9972): v4l: usbvideo, fix module ref count check

usbvideo_ClientIncModCount may return value < 0 in the case of error, not > 0.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/usbvideo/usbvideo.c