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>
This commit is contained in:
Phoebe Buckheister 2014-06-06 14:27:52 +02:00 committed by David S. Miller
parent d4f3cd49d2
commit fff1f59b17
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}