diff options
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
-rw-r--r-- | drivers/scsi/scsi_debug.c | 2 |
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, | |||
887 | static sector_t get_sdebug_capacity(void) | 887 | static 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 | } |