mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
Fix a bug where is we load without specifying add_default_tgt=1 we cause an
oops when we try to unload scst_local. This is because we were unregistering the driver if we did not add a default target, but we try to do that again when we try to unload the driver. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1788,7 +1788,7 @@ static int __init scst_local_init(void)
|
||||
}
|
||||
|
||||
if (!scst_local_add_default_tgt)
|
||||
goto driver_unreg;
|
||||
goto out;
|
||||
|
||||
ret = scst_local_add_target("scst_local_tgt", &tgt);
|
||||
if (ret != 0)
|
||||
|
||||
Reference in New Issue
Block a user