projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b2f28
)
mac802154: fixed potential skb leak with mac802154_parse_frame_start
author
Martin Townsend
<martin.townsend@xsilon.com>
Tue, 19 Aug 2014 17:03:28 +0000
(19:03 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 19 Aug 2014 17:17:41 +0000
(19:17 +0200)
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>
net/mac802154/wpan.c
patch
|
blob
|
history
diff --git
a/net/mac802154/wpan.c
b/net/mac802154/wpan.c
index 3c3069fd69718277fc719e82d7bf2c51bb9747db..4c133239ad39c34dbc15c855e8d830277eb2c7e7 100644
(file)
--- 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)
ret = mac802154_parse_frame_start(skb, &hdr);
if (ret) {
pr_debug("got invalid frame\n");
+ kfree_skb(skb);
return;
}