Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1f3f0862 authored by Peiwei Hu's avatar Peiwei Hu Committed by Greg Kroah-Hartman
Browse files

powerpc/prom_init: Fix improper check of prom_getprop()



[ Upstream commit 869fb7e5aecbc163003f93f36dcc26d0554319f6 ]

prom_getprop() can return PROM_ERROR. Binary operator can not identify
it.

Fixes: 94d2dde7 ("[POWERPC] Efika: prune fixups and make them more carefull")
Signed-off-by: default avatarPeiwei Hu <jlu.hpw@foxmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/tencent_BA28CC6897B7C95A92EB8C580B5D18589105@qq.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c3e4e1d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment