Skip to content

Commit 3d3185a

Browse files
author
Al Viro
committed
esas2r: don't bother with __copy_to_user()
sure, we'd done copy_from_user() on the same range, so we can skip access_ok()... and it's not worth bothering. Just use copy_to_user(). Signed-off-by: Al Viro <[email protected]>
1 parent 8f3d9f3 commit 3d3185a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/esas2r/esas2r_ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ int esas2r_ioctl_handler(void *hostdata, unsigned int cmd, void __user *arg)
15101510
}
15111511

15121512
/* Always copy the buffer back, if only to pick up the status */
1513-
err = __copy_to_user(arg, ioctl, sizeof(struct atto_express_ioctl));
1513+
err = copy_to_user(arg, ioctl, sizeof(struct atto_express_ioctl));
15141514
if (err != 0) {
15151515
esas2r_log(ESAS2R_LOG_WARN,
15161516
"ioctl_handler copy_to_user didn't copy everything (err %d, cmd %u)",

0 commit comments

Comments
 (0)