lkml.org 
[lkml]   [2013]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.12 059/118] mwifiex: fix memory leak issue for ibss join
    Date
    3.12-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Ujjal Roy <royujjal@gmail.com>

    commit 517543fd72d577dde2ebd9505dc4abf26d589f9a upstream.

    For IBSS join if the requested SSID matches current SSID,
    it returns without freeing the allocated beacon IE buffer.

    Signed-off-by: Ujjal Roy <royujjal@gmail.com>
    Signed-off-by: Bing Zhao <bzhao@marvell.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/wireless/mwifiex/sta_ioctl.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    --- a/drivers/net/wireless/mwifiex/sta_ioctl.c
    +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c
    @@ -319,8 +319,8 @@ int mwifiex_bss_start(struct mwifiex_pri
    if (bss_desc && bss_desc->ssid.ssid_len &&
    (!mwifiex_ssid_cmp(&priv->curr_bss_params.bss_descriptor.
    ssid, &bss_desc->ssid))) {
    - kfree(bss_desc);
    - return 0;
    + ret = 0;
    + goto done;
    }

    /* Exit Adhoc mode first */



    \
     
     \ /
      Last update: 2013-12-19 03:01    [W:4.155 / U:0.436 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site