From f054a655c331342200b5929f533792d528ac6002 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 22 Jan 2013 17:04:40 +0100 Subject: [PATCH] alias: if the underlying device changes (or goes away), set the device present status to false to make its users shut down Signed-off-by: Felix Fietkau --- alias.c | 1 + 1 file changed, 1 insertion(+) diff --git a/alias.c b/alias.c index e4f28e5..185a5d2 100644 --- a/alias.c +++ b/alias.c @@ -37,6 +37,7 @@ static void alias_set_device(struct alias_device *alias, struct device *dev) if (dev == alias->dep.dev) return; + device_set_present(&alias->dev, false); device_remove_user(&alias->new_dep); if (alias->dev.active) { if (dev) -- 2.25.1