summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-01 22:14:01 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-01 22:14:01 +0000
commit9e04630d3953264b1faad9f4336d0b1d6f76e191 (patch)
tree7790f880d42adab85924555cf8e3d16bbe8d2cd6 /target
parent224b54bdaae0bca1744bb2e5f1b12c4a769d75c0 (diff)
ocf: fix uninitialized variable access (thx, Dakon)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16285 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic-2.6/patches-2.6.27/973-ocf_2.6.27_fix.patch2
-rw-r--r--target/linux/generic-2.6/patches-2.6.28/973-ocf_2.6.27_fix.patch2
-rw-r--r--target/linux/generic-2.6/patches-2.6.29/973-ocf_2.6.27_fix.patch2
-rw-r--r--target/linux/generic-2.6/patches-2.6.30/973-ocf_2.6.27_fix.patch2
4 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.27/973-ocf_2.6.27_fix.patch b/target/linux/generic-2.6/patches-2.6.27/973-ocf_2.6.27_fix.patch
index 6ffce01a28..ecb9bef513 100644
--- a/target/linux/generic-2.6/patches-2.6.27/973-ocf_2.6.27_fix.patch
+++ b/target/linux/generic-2.6/patches-2.6.27/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);
diff --git a/target/linux/generic-2.6/patches-2.6.28/973-ocf_2.6.27_fix.patch b/target/linux/generic-2.6/patches-2.6.28/973-ocf_2.6.27_fix.patch
index 6ffce01a28..ecb9bef513 100644
--- a/target/linux/generic-2.6/patches-2.6.28/973-ocf_2.6.27_fix.patch
+++ b/target/linux/generic-2.6/patches-2.6.28/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);
diff --git a/target/linux/generic-2.6/patches-2.6.29/973-ocf_2.6.27_fix.patch b/target/linux/generic-2.6/patches-2.6.29/973-ocf_2.6.27_fix.patch
index 6ffce01a28..ecb9bef513 100644
--- a/target/linux/generic-2.6/patches-2.6.29/973-ocf_2.6.27_fix.patch
+++ b/target/linux/generic-2.6/patches-2.6.29/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);
diff --git a/target/linux/generic-2.6/patches-2.6.30/973-ocf_2.6.27_fix.patch b/target/linux/generic-2.6/patches-2.6.30/973-ocf_2.6.27_fix.patch
index 6ffce01a28..ecb9bef513 100644
--- a/target/linux/generic-2.6/patches-2.6.30/973-ocf_2.6.27_fix.patch
+++ b/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);