From: Alexander Aring Date: Fri, 18 Sep 2015 09:30:40 +0000 (+0200) Subject: mac802154: llsec: fix device deletion from list X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cdd38b219eec2e1b83c0a02d89d372f9656648eb;p=linux-beck.git mac802154: llsec: fix device deletion from list This patch adds a missing list_del when a device description will be deleted. Cc: Phoebe Buckheister Signed-off-by: Alexander Aring Signed-off-by: Marcel Holtmann --- 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;