[RAMEN9610-20893]wlbt: Fix for memory leak in driver
authorSrishti Piplani <srishti.p@samsung.com>
Mon, 11 Nov 2019 11:10:01 +0000 (16:40 +0530)
committerlulu2 <lulu2@lenovo.com>
Wed, 20 Nov 2019 03:16:46 +0000 (11:16 +0800)
Free supported_channels_buffer after it has been used.

Change-Id: I1944f94a3bf6a614a2a5c5a112d8c409851f50fa
SCSC-Bug-Id: HOST-11425
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
drivers/net/wireless/scsc/mgt.c
include/scsc/scsc_release.h

index 91fdee30614815e1a7a0cdfe6629541426875763..0a8dca9176d9ee12b0e34fbb48472c7ad90178e1 100755 (executable)
@@ -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? */
index 05e1b4c19aa9447db1a08b4228617452fb539aee..f0b705f74298c866858ec6c55e32d52e25a39cf3 100644 (file)
@@ -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