From: Brian King Date: Wed, 17 Jan 2007 18:32:12 +0000 (-0600) Subject: libata: Fixup n_elem initialization X-Git-Tag: v2.6.20-rc6~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a801184fa480e11e6431f184a5bdf31f63326fb;p=pandora-kernel.git 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 Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed