diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-02-02 16:06:23 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-25 16:14:06 -0800 |
commit | 9ec6dbd16425a0a7c8c112908d24564edb0868cb (patch) | |
tree | 3f21f7c41d8a4d893e6726e7c4390c4b01d96367 /net/unix/sysctl_net_unix.c | |
parent | 4b30c359ac5e24782a1c908e7ba392bec9b4ff34 (diff) |
SCSI: sd: handle bad lba in sense information
patch 366c246de9cec909c5eba4f784c92d1e75b4dc38 in mainline.
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 <snitzer@gmail.com>
Cc: Stable Tree <stable@kernel.org>
Cc: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions