]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] SCSI: fix transfer direction in scsi_lib and st
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 14 Dec 2005 22:34:11 +0000 (23:34 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Dec 2005 00:08:58 +0000 (16:08 -0800)
commit841f70676036b309f7102e2c8024dc68c3946990
tree9c1358760ce8a80ae2889a3f211fb4653ed761cf
parent8e58cb47ade0e69f3c953a41b67913c430c67879
[PATCH] SCSI: fix transfer direction in scsi_lib and st

SCSI: fix transfer direction in scsi_lib and st

scsi_prep_fn and st_init_command could issue WRITE requests with zero
buffer length. This may lead to kernel panic or oops with some SCSI
low-level drivers.

Derived from -rc patches from Jens Axboe and James Bottomley.

Patch is reassembled for -stable from patches:
[SCSI] fix panic when ejecting ieee1394 ipod
[SCSI] Consolidate REQ_BLOCK_PC handling path (fix ipod panic)

Depends on patch "SCSI: fix transfer direction in sd (kernel panic when
ejecting iPod)". Also modifies the already correct sr_init_command to
fully match the corresponding -rc patch.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/scsi_lib.c
drivers/scsi/sr.c
drivers/scsi/st.c