diff options
author | Bob Copeland <me@bobcopeland.com> | 2013-11-05 14:16:57 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-11-25 14:50:10 -0500 |
commit | 87d84c452a7603e4f4aaa806ec1a798d6eacfc99 (patch) | |
tree | 2f7ae05d9a6142aa0ecae0613da445096ce964da | |
parent | 272a9e2614bf3b93f47f95ef9507d4ceec6bec27 (diff) |
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>
-rw-r--r-- | net/mac80211/mesh_plink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index 550ebc1463ca..429f69278d16 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c | |||
@@ -283,7 +283,7 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata, | |||
283 | 2 + 8 + /* peering IE */ | 283 | 2 + 8 + /* peering IE */ |
284 | sdata->u.mesh.ie_len); | 284 | sdata->u.mesh.ie_len); |
285 | if (!skb) | 285 | if (!skb) |
286 | return -1; | 286 | return err; |
287 | info = IEEE80211_SKB_CB(skb); | 287 | info = IEEE80211_SKB_CB(skb); |
288 | skb_reserve(skb, local->tx_headroom); | 288 | skb_reserve(skb, local->tx_headroom); |
289 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len); | 289 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len); |