aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-06-01 22:14:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-06-01 22:14:01 +0000
commitdb5c4304f500c4e2b3a23eb871cdea6f9b5c4a36 (patch)
tree14fb8394912ee594c40c27506a66c41840a15abe /target
parent8aa2f586f497956e82efacf25f331a0a44953bec (diff)
downloadupstream-db5c4304f500c4e2b3a23eb871cdea6f9b5c4a36.tar.gz
upstream-db5c4304f500c4e2b3a23eb871cdea6f9b5c4a36.tar.bz2
upstream-db5c4304f500c4e2b3a23eb871cdea6f9b5c4a36.zip
ocf: fix uninitialized variable access (thx, Dakon)
SVN-Revision: 16285
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);