mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-12 17:34:30 -05:00
16 lines
531 B
Diff
16 lines
531 B
Diff
diff --git a/drivers/net/wireless/bcmdhd/wl_cfg80211.c b/drivers/net/wireless/bcmdhd/wl_cfg80211.c
|
|
index 9081988..a73b030 100644
|
|
--- a/drivers/net/wireless/bcmdhd/wl_cfg80211.c
|
|
+++ b/drivers/net/wireless/bcmdhd/wl_cfg80211.c
|
|
@@ -5830,6 +5830,10 @@
|
|
|
|
WL_DBG(("Enter \n"));
|
|
|
|
+ if (len > (ACTION_FRAME_SIZE + DOT11_MGMT_HDR_LEN)) {
|
|
+ WL_ERR(("bad length:%zu\n", len));
|
|
+ return BCME_BADARG;
|
|
+ }
|
|
dev = cfgdev_to_wlc_ndev(cfgdev, cfg);
|
|
|
|
/* set bsscfg idx for iovar (wlan0: P2PAPI_BSSCFG_PRIMARY, p2p: P2PAPI_BSSCFG_DEVICE) */
|