From: Vasiliy Kulikov Date: Sun, 3 Jul 2011 11:26:47 +0000 (+0400) Subject: sata_dwc_460ex: fix error path X-Git-Tag: v3.1-rc1~257^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04e506b5e7bd61c3a99af9964f7f1177c17f3424;p=pandora-kernel.git sata_dwc_460ex: fix error path Fixed hsdev memleak on sata_dwc_probe() error. As dma_dwc_exit() can be called multiple times without sata_dma_regs and irq_dma changes, it might lead to double free on sequential dma_dwc_exit() calls. So, zero these fields after free calls. Signed-off-by: Vasiliy Kulikov Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed