diff options
| author | FUJITA Tomonori <[email protected]> | 2010-01-05 10:41:44 +0000 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2010-02-08 19:43:18 +0000 |
| commit | 84eb8fb42c120ff32b201c1cdd910033c888f699 (patch) | |
| tree | 6524fd3b36c939f532b579448e6a5fbda47d02b7 /lib/debugobjects.c | |
| parent | [SCSI] qla2xxx: make msix interrupt handler safe for irq (diff) | |
| download | kernel-84eb8fb42c120ff32b201c1cdd910033c888f699.tar.gz kernel-84eb8fb42c120ff32b201c1cdd910033c888f699.zip | |
[SCSI] compat_ioct: fix bsg SG_IO
bsg's SG_IO doesn't work on 32-bit userspace and 64-bit kernelspace.
The problem is that both sg and bsg drivers use SG_IO
ioctl. sg_ioctl_trans() does 32/64-bit conversion even against bsg
header. It messes up bsg header. bsg driver gets garbage.
This patch fixes sg_ioctl_trans to handle only sg header (struct
sg_io_hdr).
Reported-by: Giridhar Malavali <[email protected]>
Signed-off-by: FUJITA Tomonori <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
