mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 05:26:07 +00:00
mac80211: return -ENOMEM in mesh_plink_frame_tx
All other paths return an error code, do the same here. Signed-off-by: Bob Copeland <bob@cozybit.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
272a9e2614
commit
87d84c452a
@ -283,7 +283,7 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata,
|
|||||||
2 + 8 + /* peering IE */
|
2 + 8 + /* peering IE */
|
||||||
sdata->u.mesh.ie_len);
|
sdata->u.mesh.ie_len);
|
||||||
if (!skb)
|
if (!skb)
|
||||||
return -1;
|
return err;
|
||||||
info = IEEE80211_SKB_CB(skb);
|
info = IEEE80211_SKB_CB(skb);
|
||||||
skb_reserve(skb, local->tx_headroom);
|
skb_reserve(skb, local->tx_headroom);
|
||||||
mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len);
|
mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user