The ioctl's DT3155_STOP and DT3155_START are defined with the macro _IO indicating that they have no parameters. They should not be using copy_to_user to return data to user space. Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxx> Cc: Scott Smedley <ss@xxxxxxxxxx> --- diff --git a/drivers/staging/dt3155/dt3155_drv.c b/drivers/staging/dt3155/dt3155_drv.c index fed7e62..5eb1bcd 100644 --- a/drivers/staging/dt3155/dt3155_drv.c +++ b/drivers/staging/dt3155/dt3155_drv.c @@ -570,8 +570,6 @@ static int dt3155_ioctl(struct inode *inode, return 0; quick_stop(minor); - if (copy_to_user(up, dts, sizeof(*dts))) - return -EFAULT; return 0; } case DT3155_START: @@ -593,8 +591,6 @@ static int dt3155_ioctl(struct inode *inode, } dt3155_init_isr(minor); - if (copy_to_user(up, dts, sizeof(*dts))) - return -EFAULT; return 0; } default: _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel