Skip to content
Commit 3d435ad7 authored by Jones Desougi's avatar Jones Desougi Committed by John W. Linville
Browse files

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: default avatarJones Desougi <jones.desougi@27m.se>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent dc9f48ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment