From: Geert Uytterhoeven Date: Mon, 4 Nov 2013 09:21:05 +0000 (+0100) Subject: [SCSI] sd: Do not call do_div() with a 64-bit divisor X-Git-Tag: v3.14-rc1~131^2^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef80d1e18b014af08741cf688e3fdda1fb71363f;p=pandora-kernel.git [SCSI] sd: Do not call do_div() with a 64-bit divisor do_div() is meant for divisions of 64-bit number by 32-bit numbers. Passing 64-bit divisor types caused issues in the past on 32-bit platforms, cfr. commit ea077b1b96e073eac5c3c5590529e964767fc5f7 ("m68k: Truncate base in do_div()"). As scsi_device.sector_size is unsigned (int), factor should be unsigned int, too. Signed-off-by: Geert Uytterhoeven Signed-off-by: James Bottomley --- Reading git-diff-tree failed