[PATCH 0/7] scsi: Fix transfer length 0 for 6-byte r/w commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For 6-byte r/w commands, transfer length 0 means 256 blocks of data,
not 0 block.

But some drivers consider transfer length 0 as 0 block.
Fortunately, the scsi disk driver sets up 10-byte r/w commands for
256 blocks of data instead of 6-byte r/w commands.  So this could be
an issue when SCSI commands are issued by SG_IO ioctl.

Akinobu Mita (7):
  hpsa: fix transfer length 0 for 6-byte r/w commands
  3w-xxxx: fix transfer length 0 for 6-byte r/w commands
  3w-9xxx: fix transfer length 0 for 6-byte r/w commands
  scsi: trace: fix transfer length 0 for 6-byte r/w commands
  staging: rts5208: fix transfer length 0 for 6-byte r/w commands
  megaraid_mbox: fix transfer length 0 for 6-byte r/w commands
  megaraid: fix transfer length 0 for 6-byte r/w commands

 drivers/scsi/3w-9xxx.c                | 5 ++++-
 drivers/scsi/3w-xxxx.c                | 2 ++
 drivers/scsi/hpsa.c                   | 2 ++
 drivers/scsi/megaraid.c               | 2 ++
 drivers/scsi/megaraid/megaraid_mbox.c | 2 ++
 drivers/scsi/scsi_trace.c             | 2 ++
 drivers/staging/rts5208/rtsx_scsi.c   | 8 ++++++--
 7 files changed, 20 insertions(+), 3 deletions(-)

Cc: Don Brace <don.brace@xxxxxxxx>
Cc: iss_storagedev@xxxxxx
Cc: storagedev@xxxxxxxx
Cc: Adam Radford <linuxraid@xxxxxxx>
Cc: Kashyap Desai <kashyap.desai@xxxxxxxxxxxxx>
Cc: Sumit Saxena <sumit.saxena@xxxxxxxxxxxxx>
Cc: Uday Lingala <uday.lingala@xxxxxxxxxxxxx>
Cc: megaraidlinux.pdl@xxxxxxxxxxxxx
Cc: "James E.J. Bottomley" <JBottomley@xxxxxxxx>
Cc: linux-scsi@xxxxxxxxxxxxxxx
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux