From: Bob Copeland Date: Tue, 5 Nov 2013 19:16:57 +0000 (-0800) Subject: mac80211: return -ENOMEM in mesh_plink_frame_tx X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87d84c452a7603e4f4aaa806ec1a798d6eacfc99;p=linux-beck.git mac80211: return -ENOMEM in mesh_plink_frame_tx All other paths return an error code, do the same here. Signed-off-by: Bob Copeland Signed-off-by: Johannes Berg --- 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, 2 + 8 + /* peering IE */ sdata->u.mesh.ie_len); if (!skb) - return -1; + return err; info = IEEE80211_SKB_CB(skb); skb_reserve(skb, local->tx_headroom); mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len);