aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-04-22 20:42:25 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-05-20 18:21:15 -0400
commit73da9c13d4df3c1715029aa45edc78d71b617dfd (patch)
treea160378d08329b74b0ccde4d7f44bc87324657a8 /drivers/scsi/scsi_debug.c
parentf381642d8f8963e62f5d45774505fd936f2b6072 (diff)
[SCSI] scsi_debug: fix virtual disk larger than 1TB
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
-rw-r--r--drivers/scsi/scsi_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index 213123b0486b..41a21772df12 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -887,7 +887,7 @@ static int resp_start_stop(struct scsi_cmnd * scp,
887static sector_t get_sdebug_capacity(void) 887static sector_t get_sdebug_capacity(void)
888{ 888{
889 if (scsi_debug_virtual_gb > 0) 889 if (scsi_debug_virtual_gb > 0)
890 return 2048 * 1024 * scsi_debug_virtual_gb; 890 return 2048 * 1024 * (sector_t)scsi_debug_virtual_gb;
891 else 891 else
892 return sdebug_store_sectors; 892 return sdebug_store_sectors;
893} 893}