From: James Bottomley Date: Sat, 2 Feb 2008 22:06:23 +0000 (-0600) Subject: [SCSI] sd: handle bad lba in sense information X-Git-Tag: v2.6.25-rc1~285^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=366c246de9cec909c5eba4f784c92d1e75b4dc38;p=pandora-kernel.git [SCSI] sd: handle bad lba in sense information Some devices report medium error locations incorrectly. Add guards to make sure the reported bad lba is actually in the request that caused it. Additionally remove the large case statment for sector sizes and replace it with the proper u64 divisions. Tested-by: Mike Snitzer Cc: Stable Tree Cc: Tony Battersby Signed-off-by: James Bottomley --- Reading git-diff-tree failed