2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-19 08:05:27 +08:00

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: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Al Viro 2009-02-06 00:32:27 +00:00 committed by Linus Torvalds
parent 082256333f
commit 767b5828ad

View File

@ -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;