| lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
|
Open Source and information security mailing list archives
| ||
|
Message-ID: <20071206220634.GT17496@vidsoft.de> Date: Thu, 6 Dec 2007 23:06:35 +0100 From: Gregor Jasny <jasny@...soft.de> To: video4linux-list@...hat.com Cc: Ted Walther <ted@...mera.com>, John Sokol <sokol@...eotechnology.com>, Mauro Carvalho Chehab <mchehab@...radead.org>, linux-kernel@...r.kernel.org Subject: [PATCH] vivi driver works only as first device From: Gregor Jasny <gjasny@....de> When the vivi driver allocates a video device, video_register_device() stores the allocated device minor inside the vivi structure. But when the device node is opened, the file minor number is compared to the minor in the device list. So this patch copies the allocated minor in the device list, too. Without this patch it is impossible to use the vivi driver mith minors greater than zero. Signed-off-by: Gregor Jasny <gjasny@....de> --- diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index ee73dc7..f4e533a 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c @@ -1175,6 +1175,9 @@ static int __init vivi_init(void) ret = video_register_device(&vivi, VFL_TYPE_GRABBER, video_nr); printk(KERN_INFO "Video Technology Magazine Virtual Video Capture Board (Load status: %d)\n", ret); + + dev->vfd.minor = vivi.minor; + return ret; } -- 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