From: Jones Desougi Date: Wed, 27 Oct 2010 17:38:34 +0000 (+0200) Subject: ath5k: Fix double free on hw attach error path X-Git-Tag: v2.6.37-rc1~32^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d435ad7218ff58c846d7e52d87c2daf115f50cd;p=pandora-kernel.git ath5k: Fix double free on hw attach error path If ath5k_hw_attach fails it will free sc->ah (local variable ah) before returning. However, when it reports failure the caller (ath5k_pci_probe) will also free sc->ah. Let the caller handle the deallocation, it does so on further errors as well. Signed-off-by: Jones Desougi Signed-off-by: John W. Linville --- Reading git-diff-tree failed