]> Pileus Git - ~andy/linux/commitdiff
mwifiex: fix memory leak associated with IE manamgement
authorAvinash Patil <patila@marvell.com>
Wed, 27 Jun 2012 19:46:24 +0000 (12:46 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 27 Jun 2012 20:00:34 +0000 (16:00 -0400)
Free ap_custom_ie before return from function.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/ie.c

index ceb82cd749cc7ba1ca2054ae0b675802d2194190..383820a52beba0d62428614131adbe42def1e5db 100644 (file)
@@ -213,6 +213,7 @@ mwifiex_update_uap_custom_ie(struct mwifiex_private *priv,
                /* save assoc resp ie index after auto-indexing */
                *assoc_idx = *((u16 *)pos);
 
+       kfree(ap_custom_ie);
        return ret;
 }