summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2007-01-17 19:32:12 +0100
committerJeff Garzik <jeff@garzik.org>2007-01-24 08:04:34 +0100
commit7a801184fa480e11e6431f184a5bdf31f63326fb (patch)
treeb68cc5daee76cc564f7f48cc038f52be4a855be7 /security
parentahci: don't enter slumber on power down (diff)
downloadlinux-7a801184fa480e11e6431f184a5bdf31f63326fb.tar.xz
linux-7a801184fa480e11e6431f184a5bdf31f63326fb.zip
libata: Fixup n_elem initialization
Fixup the inialization of qc->n_elem. It currently gets initialized to 1 for commands that do not transfer any data. Fix this by initializing n_elem to 0 and only setting to 1 in ata_scsi_qc_new when there is data to transfer. This fixes some problems seen with SATA devices attached to ipr adapters. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions