Skip to content

Commit

Permalink
braino in sg_ioctl_trans()
Browse files Browse the repository at this point in the history
... and yes, gcc is insane enough to eat that without complaint.
We probably want sparse to scream on those...

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Al Viro authored and torvalds committed Feb 6, 2009
1 parent 0822563 commit 767b582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/compat_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 767b582

Please sign in to comment.