From bc22047b1d3ce18cdb00110dd37c6faa889f3921 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 28 Jan 2016 22:37:25 +0100 Subject: [PATCH] alias: clean up device dependencies on free Signed-off-by: Felix Fietkau --- alias.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/alias.c b/alias.c index cef125f..01bec41 100644 --- a/alias.c +++ b/alias.c @@ -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); } -- 2.25.1