[PATCH] hostap: Fix memory leak on PCI probe error path
authorJouni Malinen <jkmaline@cc.hut.fi>
Mon, 20 Mar 2006 03:21:49 +0000 (19:21 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 23 Mar 2006 21:16:58 +0000 (16:16 -0500)
commit9320199957cebc39ccef372fa1fccf5ba3d3fd7d
treec4d89643eae57f819aa014eca6f4032d66e9ef5a
parent4f7ecdf0b1b8125fe190247beb0df652829e13cb
[PATCH] hostap: Fix memory leak on PCI probe error path

The Coverity checker (CID: 659, 660) spotted this resource leak on
PCI probe error path. Free private data structure if pci_enable_device()
fails.

Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/hostap/hostap_pci.c
drivers/net/wireless/hostap/hostap_plx.c