From: Srishti Piplani Date: Mon, 11 Nov 2019 11:10:01 +0000 (+0530) Subject: [RAMEN9610-20893]wlbt: Fix for memory leak in driver X-Git-Tag: MMI-QSB30.62-17~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c38b8c17906d76f4528d2be4ef25bb6bf30fb900;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [RAMEN9610-20893]wlbt: Fix for memory leak in driver Free supported_channels_buffer after it has been used. Change-Id: I1944f94a3bf6a614a2a5c5a112d8c409851f50fa SCSC-Bug-Id: HOST-11425 Signed-off-by: Srishti Piplani --- diff --git a/drivers/net/wireless/scsc/mgt.c b/drivers/net/wireless/scsc/mgt.c index 91fdee306148..0a8dca9176d9 100755 --- a/drivers/net/wireless/scsc/mgt.c +++ b/drivers/net/wireless/scsc/mgt.c @@ -1532,6 +1532,7 @@ static int slsi_mib_initial_get(struct slsi_dev *sdev) } SLSI_DBG1(sdev, SLSI_CFG80211, "Value for Supported Channels mib: %s\n", supported_channels_buffer); + kfree(supported_channels_buffer); } if (values[++mib_index].type != SLSI_MIB_TYPE_NONE) /* HT enabled? */ diff --git a/include/scsc/scsc_release.h b/include/scsc/scsc_release.h index 05e1b4c19aa9..f0b705f74298 100644 --- a/include/scsc/scsc_release.h +++ b/include/scsc/scsc_release.h @@ -23,7 +23,7 @@ #define SCSC_RELEASE_ITERATION 6 #define SCSC_RELEASE_CANDIDATE 1 -#define SCSC_RELEASE_POINT 4 +#define SCSC_RELEASE_POINT 5 #endif