summaryrefslogtreecommitdiffstats
path: root/net/mac802154/llsec.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-09-18 11:30:40 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-09-22 11:51:19 +0200
commitcdd38b219eec2e1b83c0a02d89d372f9656648eb (patch)
tree5fa438ff28efb4ea1cb63fd32cce20feb31ee33e /net/mac802154/llsec.c
parent475b9eacc5543eea922431bb8ac4ec761de0e415 (diff)
downloadlinux-cdd38b219eec2e1b83c0a02d89d372f9656648eb.tar.bz2
mac802154: llsec: fix device deletion from list
This patch adds a missing list_del when a device description will be deleted. Cc: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/llsec.c')
-rw-r--r--net/mac802154/llsec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c
index 985e9394e2af..7799d3c41fe2 100644
--- a/net/mac802154/llsec.c
+++ b/net/mac802154/llsec.c
@@ -401,6 +401,7 @@ int mac802154_llsec_dev_del(struct mac802154_llsec *sec, __le64 device_addr)
hash_del_rcu(&pos->bucket_s);
hash_del_rcu(&pos->bucket_hw);
+ list_del_rcu(&pos->dev.list);
call_rcu(&pos->rcu, llsec_dev_free_rcu);
return 0;