diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-22 17:04:40 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-22 17:04:47 +0100 |
commit | f054a655c331342200b5929f533792d528ac6002 (patch) | |
tree | 8ac9f929468b849b97cc27f80a6d70b80d2810a3 | |
parent | 7496f70e45964d9e4ac870582c8e4e3ce7c56ad6 (diff) |
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 <nbd@openwrt.org>
-rw-r--r-- | alias.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |