Commit 767b5828 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

braino in sg_ioctl_trans()

... and yes, gcc is insane enough to eat that without complaint.
We probably want sparse to scream on those...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 08225633
...@@ -785,7 +785,7 @@ static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) ...@@ -785,7 +785,7 @@ static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg)
if (copy_in_user(&sgio->status, &sgio32->status, if (copy_in_user(&sgio->status, &sgio32->status,
(4 * sizeof(unsigned char)) + (4 * sizeof(unsigned char)) +
(2 * sizeof(unsigned (short))) + (2 * sizeof(unsigned short)) +
(3 * sizeof(int)))) (3 * sizeof(int))))
return -EFAULT; return -EFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment