ocf: fix uninitialized variable access (thx, Dakon)

SVN-Revision: 16285
master
Felix Fietkau 16 years ago
parent 8aa2f586f4
commit db5c4304f5
  1. 2
      target/linux/generic-2.6/patches-2.6.27/973-ocf_2.6.27_fix.patch
  2. 2
      target/linux/generic-2.6/patches-2.6.28/973-ocf_2.6.27_fix.patch
  3. 2
      target/linux/generic-2.6/patches-2.6.29/973-ocf_2.6.27_fix.patch
  4. 2
      target/linux/generic-2.6/patches-2.6.30/973-ocf_2.6.27_fix.patch

@ -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);

@ -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);

@ -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);

@ -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);

Loading…
Cancel
Save