From: FUJITA Tomonori Date: Tue, 5 Jan 2010 10:41:44 +0000 (+0900) Subject: [SCSI] compat_ioct: fix bsg SG_IO X-Git-Tag: v2.6.33-rc8~12^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84eb8fb42c120ff32b201c1cdd910033c888f699;p=pandora-kernel.git [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 Signed-off-by: FUJITA Tomonori Signed-off-by: James Bottomley --- Reading git-diff-tree failed