From: Tejun Heo Date: Mon, 23 Jan 2006 04:09:36 +0000 (+0900) Subject: [PATCH] libata: fix ata_qc_issue() error handling X-Git-Tag: v2.6.17-rc1~1182^2~121 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e436af9326f5cc2e07d76505154ffddfb04b485;p=pandora-kernel.git [PATCH] libata: fix ata_qc_issue() error handling When ata_qc_issue() fails, the qc might have been dma mapped or not. So, performing only ata_qc_free() results in dma map leak. This patch makes ata_qc_issue() mark dma map flags correctly on failure and calls ata_qc_complete() after ata_qc_issue() fails. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed