projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
locktorture: Fix module unwind when bad torture_type specified
[deliverable/linux.git]
/
kernel
/
locking
/
locktorture.c
diff --git
a/kernel/locking/locktorture.c
b/kernel/locking/locktorture.c
index 32244186f1f2ae0e7a6343ad084f416aa0cda055..820852f698583de63c72e3f4ee7760ad38c5b618 100644
(file)
--- a/
kernel/locking/locktorture.c
+++ b/
kernel/locking/locktorture.c
@@
-661,11
+661,11
@@
static int __init lock_torture_init(void)
for (i = 0; i < ARRAY_SIZE(torture_ops); i++)
pr_alert(" %s", torture_ops[i]->name);
pr_alert("\n");
for (i = 0; i < ARRAY_SIZE(torture_ops); i++)
pr_alert(" %s", torture_ops[i]->name);
pr_alert("\n");
-
torture_init_end()
;
-
return -EINVAL
;
+
firsterr = -EINVAL
;
+
goto unwind
;
}
if (cxt.cur_ops->init)
}
if (cxt.cur_ops->init)
- cxt.cur_ops->init();
/* no "goto unwind" prior to this point!!! */
+ cxt.cur_ops->init();
if (nwriters_stress >= 0)
cxt.nrealwriters_stress = nwriters_stress;
if (nwriters_stress >= 0)
cxt.nrealwriters_stress = nwriters_stress;
This page took
0.044492 seconds
and
5
git commands to generate.