Skip to content

Commit

Permalink
mac802154: llsec: add forgotten list_del_rcu in key removal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Phoebe Buckheister authored and David S. Miller committed Jun 6, 2014
1 parent d4f3cd4 commit fff1f59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mac802154/llsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ int mac802154_llsec_key_del(struct mac802154_llsec *sec,
mkey = container_of(pos->key, struct mac802154_llsec_key, key);

if (llsec_key_id_equal(&pos->id, key)) {
list_del_rcu(&pos->list);
llsec_key_put(mkey);
return 0;
}
Expand Down

0 comments on commit fff1f59

Please sign in to comment.