[patch 01/12] Move copy_from_user calls out of ioctl helpers into ioctl switch.

Christoph Hellwig hch at infradead.org
Wed Nov 26 04:03:39 CST 2008


On Tue, Nov 25, 2008 at 09:20:06PM -0600, sandeen at sandeen.net wrote:
> Moving the copy_from_user out of some of the ioctl helpers will
> make it easier for the compat ioctl switch to copy in the right
> struct, then just pass to the underlying helper.
> 
> Also, move common access checks into the helpers themselves,
> and out of the native ioctl switch code, to reduce code
> duplication between native & compat ioctl callers.

Looks good.



More information about the xfs mailing list