aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/iface.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-06-10 04:21:33 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-14 15:39:26 -0400
commit36b3a628a4e85d002ee8813ebd2a5caef6d3c1a7 (patch)
tree927219d1cf6ef466ec574c8172365fa1b37d53be /net/mac80211/iface.c
parent1fa57d017366fb26b58af110a38b36a4f0214a62 (diff)
mac80211: common work skb freeing
All the management processing functions free the skb after they are done, so this can be done in the new common code instead. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r--net/mac80211/iface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 14212ad41e5a..1bf276d7024b 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -738,9 +738,10 @@ static void ieee80211_iface_work(struct work_struct *work)
738 break; 738 break;
739 default: 739 default:
740 WARN(1, "frame for unexpected interface type"); 740 WARN(1, "frame for unexpected interface type");
741 kfree_skb(skb);
742 break; 741 break;
743 } 742 }
743
744 kfree_skb(skb);
744 } 745 }
745 746
746 /* then other type-dependent work */ 747 /* then other type-dependent work */