From: Felix Fietkau Date: Mon, 1 Jun 2009 22:14:01 +0000 (+0000) Subject: ocf: fix uninitialized variable access (thx, Dakon) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=db5c4304f500c4e2b3a23eb871cdea6f9b5c4a36;p=openwrt%2Fstaging%2Flinusw.git ocf: fix uninitialized variable access (thx, Dakon) SVN-Revision: 16285 --- 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);