hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/arch/sh/kernel/cpu/fpu.c
....@@ -62,18 +62,20 @@
6262 }
6363
6464 if (!tsk_used_math(tsk)) {
65
- local_irq_enable();
65
+ int ret;
6666 /*
6767 * does a slab alloc which can sleep
6868 */
69
- if (init_fpu(tsk)) {
69
+ local_irq_enable();
70
+ ret = init_fpu(tsk);
71
+ local_irq_disable();
72
+ if (ret) {
7073 /*
7174 * ran out of memory!
7275 */
73
- do_group_exit(SIGKILL);
76
+ force_sig(SIGKILL);
7477 return;
7578 }
76
- local_irq_disable();
7779 }
7880
7981 grab_fpu(regs);