[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1340782159-1587-1-git-send-email-mc@linux.vnet.ibm.com>
Date: Wed, 27 Jun 2012 15:29:19 +0800
From: Cong Meng <mc@...ux.vnet.ibm.com>
To: "James E.J. Bottomley" <JBottomley@...allels.com>
Cc: stefanha@...ux.vnet.ibm.com, linuxram@...ibm.com,
linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org,
Cong Meng <mc@...ux.vnet.ibm.com>
Subject: [PATCH] SCSI: Fix BLKSECTGET ioctl of sg device caculation mistake.
Fix BLKSECTGET ioctl of sg device caculation mistake.
Signed-off-by: Cong Meng <mc@...ux.vnet.ibm.com>
---
drivers/scsi/sg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index eacd46b..c424602 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -1070,7 +1070,7 @@ sg_ioctl(struct file *filp, unsigned int cmd_in, unsigned long arg)
return -ENODEV;
return scsi_ioctl(sdp->device, cmd_in, p);
case BLKSECTGET:
- return put_user(queue_max_sectors(sdp->device->request_queue) * 512,
+ return put_user(queue_max_sectors(sdp->device->request_queue),
ip);
case BLKTRACESETUP:
return blk_trace_setup(sdp->device->request_queue,
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists