Unverified Commit 2e018278 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!4068 mm/oom_kill: fix NULL pointer dereference in memcg_print_bad_task()

parents 01b14aed 9b74fe51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4219,7 +4219,7 @@ void memcg_print_bad_task(struct oom_control *oc)
	if (memcg_oom_prio_disabled())
		return;

	if (oc->chosen) {
	if (oc->chosen && oc->chosen != (void *)-1UL) {
		struct mem_cgroup *memcg;

		rcu_read_lock();