mirror of https://github.com/hak5/openwrt-owl.git
parent
8aa2f586f4
commit
db5c4304f5
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue