Re: [PATCH] vivi driver works only as first device

From: Mauro Carvalho Chehab
Date: Mon Dec 10 2007 - 02:09:57 EST


Hi Gregor,
Em Qui, 2007-12-06 Ãs 23:06 +0100, Gregor Jasny escreveu:
> From: Gregor Jasny <gjasny@xxxxxx>
>
> 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.

Thanks for the report. Instead of applying your patch, I decided to
better analyze the issue, fixing it with the proper solution. The issue
is that vivi_register changes iminor, but this change were not properly
returned to the driver.

--
Cheers,
Mauro

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/