Merge tag 'sched_urgent_for_v6.7_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull scheduler fix from Borislav Petkov:

- Make sure tasks are thawed exactly and only once to avoid their state
getting corrupted

* tag 'sched_urgent_for_v6.7_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
freezer,sched: Do not restore saved_state of a thawed task

Changed files
+1 -1
kernel
+1 -1
kernel/freezer.c
··· 201 201 if (WARN_ON_ONCE(freezing(p))) 202 202 goto unlock; 203 203 204 - if (task_call_func(p, __restore_freezer_state, NULL)) 204 + if (!frozen(p) || task_call_func(p, __restore_freezer_state, NULL)) 205 205 goto unlock; 206 206 207 207 wake_up_state(p, TASK_FROZEN);