[SCSI] sd: Fix overflow with big physical blocks
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 28 Sep 2010 18:48:47 +0000 (14:48 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 11 Oct 2010 22:33:20 +0000 (17:33 -0500)
The hw_sector_size variable could overflow if a device reported huge
physical blocks.  Switch to the more accurate physical_block_size
terminology and make sure we use an unsigned int to match the range
permitted by READ CAPACITY(16).

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found