Commit 87d84c452a7603e4f4aaa806ec1a798d6eacfc99

Authored by Bob Copeland
Committed by Johannes Berg
1 parent 272a9e2614

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/mac80211/mesh_plink.c
... ... @@ -283,7 +283,7 @@
283 283 2 + 8 + /* peering IE */
284 284 sdata->u.mesh.ie_len);
285 285 if (!skb)
286   - return -1;
  286 + return err;
287 287 info = IEEE80211_SKB_CB(skb);
288 288 skb_reserve(skb, local->tx_headroom);
289 289 mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len);