Commit e89de275 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Fix sysfs leak.

If the driver fails to load, we leave a 3c509 eisa directory
in sysfs.
parent 1d15f977
...@@ -1655,7 +1655,7 @@ static int __init el3_init_module(void) ...@@ -1655,7 +1655,7 @@ static int __init el3_init_module(void)
} }
#ifdef CONFIG_EISA #ifdef CONFIG_EISA
if (eisa_driver_register (&el3_eisa_driver) < 0) { if (eisa_driver_register (&el3_eisa_driver) <= 0) {
eisa_driver_unregister (&el3_eisa_driver); eisa_driver_unregister (&el3_eisa_driver);
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment