]> git.karo-electronics.de Git - linux-beck.git/commitdiff
wlcore: don't leak wl->mbox
authorEliad Peller <eliad@wizery.com>
Mon, 19 Nov 2012 15:14:06 +0000 (17:14 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 27 Nov 2012 08:49:23 +0000 (10:49 +0200)
free it on wlcore_free_hw()

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/main.c

index a420ba3d754765f518730ed02ae531ecaa8a630a..d425bd5eda7e5480edbb65c3d4edd48cc30993f5 100644 (file)
@@ -5638,6 +5638,7 @@ int wlcore_free_hw(struct wl1271 *wl)
        device_remove_file(wl->dev, &dev_attr_hw_pg_ver);
 
        device_remove_file(wl->dev, &dev_attr_bt_coex_state);
+       kfree(wl->mbox);
        free_page((unsigned long)wl->fwlog);
        dev_kfree_skb(wl->dummy_packet);
        free_pages((unsigned long)wl->aggr_buf, get_order(wl->aggr_buf_size));