The patch number 9972 was added via Mauro Carvalho Chehab <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
[email protected]
------
From: Jiri Slaby <[email protected]>
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
---
linux/drivers/media/video/usbvideo/usbvideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -r d5d6a563fa68 -r 9ab145288ffe
linux/drivers/media/video/usbvideo/usbvideo.c
--- a/linux/drivers/media/video/usbvideo/usbvideo.c Mon Dec 22 22:00:03
2008 -0200
+++ b/linux/drivers/media/video/usbvideo/usbvideo.c Tue Dec 23 01:38:23
2008 +0000
@@ -1123,7 +1123,7 @@ static int usbvideo_v4l_open(struct inod
if (uvd->debug > 1)
dev_info(&uvd->dev->dev, "%s($%p)\n", __func__, dev);
- if (0 < usbvideo_ClientIncModCount(uvd))
+ if (usbvideo_ClientIncModCount(uvd) < 0)
return -ENODEV;
mutex_lock(&uvd->lock);
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/9ab145288ffe07dbbf0598d6984c99bf966e6a82
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits