projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5c4858
)
mac802154: properly free incoming skbs on decryption failure
author
Phoebe Buckheister
<phoebe.buckheister@itwm.fraunhofer.de>
Wed, 11 Jun 2014 10:03:06 +0000
(12:03 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 11 Jun 2014 19:10:18 +0000
(12:10 -0700)
mac802154 RX did not free skbs on decryption failure, assuming that the
caller would when the local rx handler returned _DROP. This was false.
Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac802154/wpan.c
patch
|
blob
|
history
diff --git
a/net/mac802154/wpan.c
b/net/mac802154/wpan.c
index 23bc91cf99c465232b0b2406f29a9bcd2b539b98..c8cfd54f37113db196432ac699c48277edc859d3 100644
(file)
--- a/
net/mac802154/wpan.c
+++ b/
net/mac802154/wpan.c
@@
-472,6
+472,7
@@
mac802154_subif_frame(struct mac802154_sub_if_data *sdata, struct sk_buff *skb,
rc = mac802154_llsec_decrypt(&sdata->sec, skb);
if (rc) {
pr_debug("decryption failed: %i\n", rc);
+ kfree_skb(skb);
return NET_RX_DROP;
}