ocf: fix uninitialized variable access (thx, Dakon)

SVN-Revision: 16285
This commit is contained in:
Felix Fietkau 2009-06-01 22:14:01 +00:00
parent 8aa2f586f4
commit db5c4304f5
4 changed files with 4 additions and 4 deletions

View File

@ -28,10 +28,10 @@
+
+ t = kthread_create(random_proc, NULL, "ocf-random");
+ if (IS_ERR(t)) {
+ ret = PTR_ERR(t);
printk("crypto: crypto_rregister cannot start random thread; "
"error %d", ret);
- } else
+ ret = PTR_ERR(t);
+ } else {
+ random_task = t;
+ wake_up_process(t);

View File

@ -28,10 +28,10 @@
+
+ t = kthread_create(random_proc, NULL, "ocf-random");
+ if (IS_ERR(t)) {
+ ret = PTR_ERR(t);
printk("crypto: crypto_rregister cannot start random thread; "
"error %d", ret);
- } else
+ ret = PTR_ERR(t);
+ } else {
+ random_task = t;
+ wake_up_process(t);

View File

@ -28,10 +28,10 @@
+
+ t = kthread_create(random_proc, NULL, "ocf-random");
+ if (IS_ERR(t)) {
+ ret = PTR_ERR(t);
printk("crypto: crypto_rregister cannot start random thread; "
"error %d", ret);
- } else
+ ret = PTR_ERR(t);
+ } else {
+ random_task = t;
+ wake_up_process(t);

View File

@ -28,10 +28,10 @@
+
+ t = kthread_create(random_proc, NULL, "ocf-random");
+ if (IS_ERR(t)) {
+ ret = PTR_ERR(t);
printk("crypto: crypto_rregister cannot start random thread; "
"error %d", ret);
- } else
+ ret = PTR_ERR(t);
+ } else {
+ random_task = t;
+ wake_up_process(t);