[NEUS7920-477] [9610][7885] wlbt: fix NAN kernel panic
authorJaya Prakash Sangaru <j.sangaru@samsung.com>
Mon, 13 May 2019 09:19:14 +0000 (14:49 +0530)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:45:56 +0000 (23:45 +0900)
In nan followup ind stack is corrputed. This fixes
this issue.

Change-Id: Id519899637abaca5bba2a9b09a82f5b7d031aa22
SCSC-Bug-Id: SSB-52644
Signed-off-by: Jaya Prakash Sangaru <j.sangaru@samsung.com>
drivers/net/wireless/scsc/nl80211_vendor_nan.c

index d91c8b562f8d8f5dcd0d0c509f54fd597a9434ce..4dc1c201be4989e2934b11d18afa3a1a4a721a42 100755 (executable)
@@ -1359,7 +1359,7 @@ void slsi_nan_followup_ind(struct slsi_dev *sdev, struct net_device *dev, struct
                kfree(stitched_ie_p);
                return;
        }
-       memset(&hal_evt, 0, sizeof(hal_evt));
+       memset(hal_evt, 0, sizeof(*hal_evt));
        stitched_ie_len = slsi_nan_stitch_ie(fapi_get_data(skb), stitched_ie_len, 0x050b, stitched_ie_p);
        if (!stitched_ie_len) {
                SLSI_ERR(sdev, "No followup ind IE\n");
@@ -1449,7 +1449,6 @@ void slsi_nan_service_ind(struct slsi_dev *sdev, struct net_device *dev, struct
        struct slsi_hal_nan_further_availability_channel *famchan;
        struct nlattr *nlattr_nested;
 
-
        SLSI_DBG3(sdev, SLSI_GSCAN, "\n");
 
        stitched_ie_len = fapi_get_datalen(skb); /* max length of stitched_ie */