diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -484,7 +484,10 @@ static void device_devup_setup(int dev_id) configure_device(dev_id); start_security_manager(dev_id); - manager_start_adapter(dev_id); + + /* Return value 1 means ioctl(DEVDOWN) was performed */ + if (manager_start_adapter(dev_id) == 1) + stop_security_manager(dev_id); } static void init_all_devices(int ctl) |