Re: unregister_ioctl32_conversion and modules. ioctl32 revisited.

From: Andi Kleen
Date: Wed Dec 15 2004 - 13:03:21 EST


> Hmm. I just had another idea. Maybe it's easier to return -ENOIOCTLCMD
> from ->ioctl_compat() in order to get back to the hash lookup. How
> about the change below?

Looks good too to me.

-Andi

>
> Arnd <><
>
> --- mst/fs/compat.c
> +++ arnd/fs/compat.c
> @@ somewhere in compat_sys_ioctl() @@
> else if (filp->f_op && filp->f_op->ioctl_compat) {
> error = filp->f_op->ioctl_compat(filp->f_dentry->d_inode,
> filp, cmd, arg);
> - goto out;
> + if (error != -ENOIOCTLCMD)
> + goto out;
> }
>
>
>


-
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/