mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[PATCH] Fix I2O config-osm init to return proper error
We currently unregister the config-osm driver if initialization of the legacy ioctl() handlers failed but still return success. We should be returning -EBUSY in this case. Signed-off-by: Deepak Saxena <[email protected]> Cc: Markus Lidel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
40da47e115
commit
8b20f6da20
1 file changed
+4
-1
@@ -56,8 +56,11 @@ static int __init i2o_config_init(void)
|
||||
return -EBUSY;
|
||||
}
|
||||
#ifdef CONFIG_I2O_CONFIG_OLD_IOCTL
|
||||
if (i2o_config_old_init())
|
||||
if (i2o_config_old_init()) {
|
||||
osm_err("old config handler initialization failed\n");
|
||||
i2o_driver_unregister(&i2o_config_driver);
|
||||
return -EBUSY;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user