[SCSI] fix panic when ejecting ieee1394 ipod
authorJens Axboe <axboe@suse.de>
Fri, 9 Dec 2005 13:42:16 +0000 (14:42 +0100)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 9 Dec 2005 18:50:53 +0000 (13:50 -0500)
The scsi_library routines don't correctly set DMA_NONE when
req->data_len is zero (instead they check the command type first, so
if it's write, we end up with req->data_len == 0 and direction as
DMA_TO_DEVICE which confuses some drivers)

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

No differences found