|
@@ -3731,7 +3731,7 @@ rs_ioctl(struct tty_struct *tty, struct file * file,
|
|
|
/* This is the ioctl to get RS485 data from user-space */
|
|
/* This is the ioctl to get RS485 data from user-space */
|
|
|
if (copy_to_user((struct serial_rs485 *) arg,
|
|
if (copy_to_user((struct serial_rs485 *) arg,
|
|
|
rs485data,
|
|
rs485data,
|
|
|
- sizeof(serial_rs485)))
|
|
|
|
|
|
|
+ sizeof(struct serial_rs485)))
|
|
|
return -EFAULT;
|
|
return -EFAULT;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|