diff options
| author | Al Viro <viro@ZenIV.linux.org.uk> | 2009-02-05 19:32:27 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-02-05 19:35:52 -0500 |
| commit | 767b5828ad9a1b435488b5d39b5a66aeef4d25e4 (patch) | |
| tree | 40dc54bb63899ff8fd2de31dfeb83230bddad935 | |
| parent | 082256333f4e879bc4b56e294921aaff6d035da0 (diff) | |
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>
| -rw-r--r-- | fs/compat_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index c8f8d5904f5e..9c6d815dd191 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
| @@ -785,7 +785,7 @@ static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) | |||
| 785 | 785 | ||
| 786 | if (copy_in_user(&sgio->status, &sgio32->status, | 786 | if (copy_in_user(&sgio->status, &sgio32->status, |
| 787 | (4 * sizeof(unsigned char)) + | 787 | (4 * sizeof(unsigned char)) + |
| 788 | (2 * sizeof(unsigned (short))) + | 788 | (2 * sizeof(unsigned short)) + |
| 789 | (3 * sizeof(int)))) | 789 | (3 * sizeof(int)))) |
| 790 | return -EFAULT; | 790 | return -EFAULT; |
| 791 | 791 | ||
