[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4B6EA71C.90705@gmail.com>
Date: Sun, 07 Feb 2010 12:42:20 +0100
From: Roel Kluin <roel.kluin@...il.com>
To: Mauro Carvalho Chehab <mchehab@...radead.org>,
linux-media@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] usbvision-video: wrong variable tested in usbvision_register_video()
usbvision->vdev was already tested, we should test usbvision->vbi here.
Signed-off-by: Roel Kluin <roel.kluin@...il.com>
---
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c
index 1054546..7c17ec6 100644
--- a/drivers/media/video/usbvision/usbvision-video.c
+++ b/drivers/media/video/usbvision/usbvision-video.c
@@ -1487,7 +1487,7 @@ static int __devinit usbvision_register_video(struct usb_usbvision *usbvision)
usbvision->vbi = usbvision_vdev_init(usbvision,
&usbvision_vbi_template,
"USBVision VBI");
- if (usbvision->vdev == NULL) {
+ if (usbvision->vbi == NULL) {
goto err_exit;
}
if (video_register_device(usbvision->vbi,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists