Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180509
b: refs/heads/master
c: 84eb8fb
h: refs/heads/master
i:
  180507: 0f08ea0
v: v3
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Feb 8, 2010
1 parent 794bdb7 commit 512f51c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f19bc681ed0849a2b95778460a0a8132e3700e2
refs/heads/master: 84eb8fb42c120ff32b201c1cdd910033c888f699
6 changes: 6 additions & 0 deletions trunk/fs/compat_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ static int sg_ioctl_trans(unsigned int fd, unsigned int cmd,
u32 data;
void __user *dxferp;
int err;
int interface_id;

if (get_user(interface_id, &sgio32->interface_id))
return -EFAULT;
if (interface_id != 'S')
return sys_ioctl(fd, cmd, (unsigned long)sgio32);

if (get_user(iovec_count, &sgio32->iovec_count))
return -EFAULT;
Expand Down

0 comments on commit 512f51c

Please sign in to comment.