mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
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>
This commit is contained in:
parent
475b9eacc5
commit
cdd38b219e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user