diff options
-rw-r--r-- | kernel/locking/locktorture.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c index 32244186f1f2..820852f69858 100644 --- a/kernel/locking/locktorture.c +++ b/kernel/locking/locktorture.c | |||
@@ -661,11 +661,11 @@ static int __init lock_torture_init(void) | |||
661 | for (i = 0; i < ARRAY_SIZE(torture_ops); i++) | 661 | for (i = 0; i < ARRAY_SIZE(torture_ops); i++) |
662 | pr_alert(" %s", torture_ops[i]->name); | 662 | pr_alert(" %s", torture_ops[i]->name); |
663 | pr_alert("\n"); | 663 | pr_alert("\n"); |
664 | torture_init_end(); | 664 | firsterr = -EINVAL; |
665 | return -EINVAL; | 665 | goto unwind; |
666 | } | 666 | } |
667 | if (cxt.cur_ops->init) | 667 | if (cxt.cur_ops->init) |
668 | cxt.cur_ops->init(); /* no "goto unwind" prior to this point!!! */ | 668 | cxt.cur_ops->init(); |
669 | 669 | ||
670 | if (nwriters_stress >= 0) | 670 | if (nwriters_stress >= 0) |
671 | cxt.nrealwriters_stress = nwriters_stress; | 671 | cxt.nrealwriters_stress = nwriters_stress; |