File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2310,7 +2310,7 @@ static int __init ns_init_module(void)
2310
2310
default :
2311
2311
NS_ERR ("bbt has to be 0..2\n" );
2312
2312
ret = - EINVAL ;
2313
- goto error ;
2313
+ goto free_ns_struct ;
2314
2314
}
2315
2315
/*
2316
2316
* Perform minimum nandsim structure initialization to handle
@@ -2337,7 +2337,7 @@ static int __init ns_init_module(void)
2337
2337
2338
2338
ret = ns_parse_weakblocks ();
2339
2339
if (ret )
2340
- goto error ;
2340
+ goto free_ns_struct ;
2341
2341
2342
2342
ret = ns_parse_weakpages ();
2343
2343
if (ret )
@@ -2428,7 +2428,7 @@ static int __init ns_init_module(void)
2428
2428
list_del (pos );
2429
2429
kfree (list_entry (pos , struct weak_block , list ));
2430
2430
}
2431
- error :
2431
+ free_ns_struct :
2432
2432
kfree (ns );
2433
2433
2434
2434
return ret ;
You can’t perform that action at this time.
0 commit comments