Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
			 (4 * sizeof(unsigned char)) +
			 (2 * sizeof(unsigned (short))) +
			 (2 * sizeof(unsigned short)) +
			 (3 * sizeof(int))))
		return -EFAULT;