From: Tejun Heo Date: Fri, 31 Mar 2006 11:36:47 +0000 (+0900) Subject: [PATCH] libata: fix ata_qc_issue failure path X-Git-Tag: v2.6.17-rc1~28^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4a70e76add280db6068426716a9b2a74099144f;p=pandora-kernel.git [PATCH] libata: fix ata_qc_issue failure path On sg_err failure path, ata_qc_issue() doesn't mark the qc active before returning. This triggers WARN_ON() in __ata_qc_complete() when the qc gets completed. This patch moves ap->active_tag and QCFLAG_ACTIVE setting to the top of the function. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed