From 0d6f410e62ba0ba6aa12233eeaf78a940e1d8b71 Mon Sep 17 00:00:00 2001 From: Srishti Piplani Date: Mon, 11 Nov 2019 16:40:01 +0530 Subject: [PATCH] [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 --- drivers/net/wireless/scsc/mgt.c | 1 + include/scsc/scsc_release.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1