ocf: fix uninitialized variable access (thx, Dakon)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 1 Jun 2009 22:14:01 +0000 (22:14 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 1 Jun 2009 22:14:01 +0000 (22:14 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16285 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic-2.6/patches-2.6.27/973-ocf_2.6.27_fix.patch
target/linux/generic-2.6/patches-2.6.28/973-ocf_2.6.27_fix.patch
target/linux/generic-2.6/patches-2.6.29/973-ocf_2.6.27_fix.patch
target/linux/generic-2.6/patches-2.6.30/973-ocf_2.6.27_fix.patch

index 6ffce01..ecb9bef 100644 (file)
 +
 +              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);
index 6ffce01..ecb9bef 100644 (file)
 +
 +              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);
index 6ffce01..ecb9bef 100644 (file)
 +
 +              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);
index 6ffce01..ecb9bef 100644 (file)
 +
 +              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);
This page took 0.026103 seconds and 4 git commands to generate.