Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: Driver in 2.6.8-rc2 and DVB-C



On Wednesday 28 July 2004 20:42, Johannes Stezenbach wrote:
> It seems Al Viro broke dvb_usercopy():
>
> --- dvb_functions.c.orig	2004-07-28 20:39:23.000000000 +0200
> +++ dvb_functions.c	2004-07-28 20:21:23.000000000 +0200
> @@ -36,7 +36,7 @@ int dvb_usercopy(struct inode *inode, st
>          /*  Copy arguments into temp kernel buffer  */
>          switch (_IOC_DIR(cmd)) {
>          case _IOC_NONE:
> -                parg = NULL;
> +                parg = (void *) arg;
>                  break;
>          case _IOC_READ: /* some v4l ioctls are marked wrong ... */
>          case _IOC_WRITE:

Curious, why does an ioctl with zero sized argument have an argument?

Kenneth




Home | Main Index | Thread Index