diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-28 22:37:25 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-28 22:37:25 +0100 |
commit | bc22047b1d3ce18cdb00110dd37c6faa889f3921 (patch) | |
tree | 013986737920a0ffbcf51f72bcb4c0429521af63 /alias.c | |
parent | 627e8b6991876b4abef6bb4a31dcdc35fcd622aa (diff) |
alias: clean up device dependencies on free
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'alias.c')
-rw-r--r-- | alias.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -130,6 +130,8 @@ static void alias_device_free(struct device *dev) struct alias_device *alias; alias = container_of(dev, struct alias_device, dev); + device_remove_user(&alias->new_dep); + device_remove_user(&alias->dep); avl_delete(&aliases, &alias->avl); free(alias); } |