|
@@ -4934,6 +4934,11 @@ brcmf_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
cfg80211_mgmt_tx_status(wdev, *cookie, buf, len, true,
|
|
|
GFP_KERNEL);
|
|
|
} else if (ieee80211_is_action(mgmt->frame_control)) {
|
|
|
+ if (len > BRCMF_FIL_ACTION_FRAME_SIZE + DOT11_MGMT_HDR_LEN) {
|
|
|
+ brcmf_err("invalid action frame length\n");
|
|
|
+ err = -EINVAL;
|
|
|
+ goto exit;
|
|
|
+ }
|
|
|
af_params = kzalloc(sizeof(*af_params), GFP_KERNEL);
|
|
|
if (af_params == NULL) {
|
|
|
brcmf_err("unable to allocate frame\n");
|