Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73da9c13 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by James Bottomley
Browse files

[SCSI] scsi_debug: fix virtual disk larger than 1TB

parent f381642d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -887,7 +887,7 @@ static int resp_start_stop(struct scsi_cmnd * scp,
static sector_t get_sdebug_capacity(void)
{
	if (scsi_debug_virtual_gb > 0)
		return 2048 * 1024 * scsi_debug_virtual_gb;
		return 2048 * 1024 * (sector_t)scsi_debug_virtual_gb;
	else
		return sdebug_store_sectors;
}