mwifiex: fix memory leak issue for ibss join
authorUjjal Roy <royujjal@gmail.com>
Thu, 21 Nov 2013 19:08:56 +0000 (11:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:45:09 +0000 (07:45 -0800)
commit4798e3b3fb8759bd0134a77e7d5112d37edde16b
treef5084c0c3feb8c45717555139ca8c938fdc402a6
parent555214ae0d4e891eefe5caf019c2a3a6a4e2f5c2
mwifiex: fix memory leak issue for ibss join

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