1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

ocf: fix uninitialized variable access (thx, Dakon)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16285 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2009-06-01 22:14:01 +00:00
parent 224b54bdaa
commit 9e04630d39
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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