[SCSI] sd: add fix for devices with last sector access problems
authorHans de Goede <j.w.r.degoede@hhs.nl>
Sun, 20 Jan 2008 10:12:26 +0000 (11:12 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 23 Jan 2008 17:29:34 +0000 (11:29 -0600)
commita0899d4df534d2bcf671b0f647b809842309a9ae
tree990c3eb7876f6f8a6dee37ec2ecd4684c11b1f74
parentb523381e325366cc54a2548df418c2a427b2f2ee
[SCSI] sd: add fix for devices with last sector access problems

This patch adds a new scsi_device flag (last_sector_bug) for devices
which contain a bug where the device crashes when the last sector is
read in a larger then 1 sector read.

This is for example the case with sdcards in the HP PSC1350 printer
cardreader and in the HP PSC1610 printer cardreader.

Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/sd.c
include/scsi/scsi_device.h