mm/percpu.c: print error message too if atomic alloc failed
authorBaoquan He <bhe@redhat.com>
Fri, 28 Jul 2023 03:02:55 +0000 (11:02 +0800)
committerDennis Zhou <dennis@kernel.org>
Fri, 25 Aug 2023 15:04:59 +0000 (08:04 -0700)
commitf7d77dfc91f747f64cb00884fd6d7940c3b49fca
treec8a77083e4cb1ffcbe999072841c2f36e2ef2050
parent7ee1e758bebe13d96217bcfd5230892ed44760e7
mm/percpu.c: print error message too if atomic alloc failed

The variable 'err' is assgigned to an error message if atomic alloc
failed, while it has no chance to be printed if is_atomic is true.

Here change to print error message too if atomic alloc failed, while
avoid to call dump_stack() if that case.

Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
mm/percpu.c