From bad63dc69175f51c0f42ca3ec79b14b0b78bd294 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Sun, 12 Sep 2010 05:48:27 +0000 Subject: [PATCH] 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 --- scst_local/scst_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index c9e683d10..e4ae86713 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -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)