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:
Richard Sharpe
2010-09-12 05:48:27 +00:00
parent 2be149adb3
commit bad63dc691

View File

@@ -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)