diff options
author | Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 2014-06-06 08:27:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-06 19:25:37 -0400 |
commit | fff1f59b1773fcbb563c503ad9c7ace54062144b (patch) | |
tree | a969bd70536b857ee9fc110563e01c899c4cf0ae | |
parent | d4f3cd49d2800dc037724efa9b33c485a1cc23d3 (diff) |
mac802154: llsec: add forgotten list_del_rcu in key removal
During key removal, the key object is freed, but not taken out of the
llsec key list properly. Fix that.
Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/mac802154/llsec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c index e4a25589ec19..1456f73b02b9 100644 --- a/net/mac802154/llsec.c +++ b/net/mac802154/llsec.c | |||
@@ -285,6 +285,7 @@ int mac802154_llsec_key_del(struct mac802154_llsec *sec, | |||
285 | mkey = container_of(pos->key, struct mac802154_llsec_key, key); | 285 | mkey = container_of(pos->key, struct mac802154_llsec_key, key); |
286 | 286 | ||
287 | if (llsec_key_id_equal(&pos->id, key)) { | 287 | if (llsec_key_id_equal(&pos->id, key)) { |
288 | list_del_rcu(&pos->list); | ||
288 | llsec_key_put(mkey); | 289 | llsec_key_put(mkey); |
289 | return 0; | 290 | return 0; |
290 | } | 291 | } |