diff options
author | Martin Townsend <martin.townsend@xsilon.com> | 2014-08-19 13:03:28 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-08-19 13:17:41 -0400 |
commit | 7629d1eaf33672c9d35ba1e2ad12b459d56ca3b1 (patch) | |
tree | 44f968094f67e27b17e99fd7887891c1c1313e94 /net/mac802154/wpan.c | |
parent | 77b2f2865956b7573f9b040db7a9f808b434acd1 (diff) |
mac802154: fixed potential skb leak with mac802154_parse_frame_start
This patch fix a memory leak if received frame was not able to parse.
Signed-off-by: Martin Townsend <martin.townsend@xsilon.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/wpan.c')
-rw-r--r-- | net/mac802154/wpan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac802154/wpan.c b/net/mac802154/wpan.c index 3c3069fd6971..4c133239ad39 100644 --- a/net/mac802154/wpan.c +++ b/net/mac802154/wpan.c | |||
@@ -573,6 +573,7 @@ void mac802154_wpans_rx(struct mac802154_priv *priv, struct sk_buff *skb) | |||
573 | ret = mac802154_parse_frame_start(skb, &hdr); | 573 | ret = mac802154_parse_frame_start(skb, &hdr); |
574 | if (ret) { | 574 | if (ret) { |
575 | pr_debug("got invalid frame\n"); | 575 | pr_debug("got invalid frame\n"); |
576 | kfree_skb(skb); | ||
576 | return; | 577 | return; |
577 | } | 578 | } |
578 | 579 | ||