]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/prom_init: Fix improper check of prom_getprop()
authorPeiwei Hu <jlu.hpw@foxmail.com>
Fri, 19 Nov 2021 09:12:18 +0000 (17:12 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 Nov 2021 00:25:33 +0000 (11:25 +1100)
commitdd6dd40d95b36d4996fbdb2f49d10d26a6f45c0b
treeb6cc48a5318097b107c0d6c7d806042e00f8c183
parent6a7a7af6098e4740eb7042c88879ce6542cfb32d
powerpc/prom_init: Fix improper check of prom_getprop()

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

Fixes: 404726482626 ("[POWERPC] Efika: prune fixups and make them more carefull")
Signed-off-by: Peiwei Hu <jlu.hpw@foxmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/tencent_BA28CC6897B7C95A92EB8C580B5D18589105@qq.com
arch/powerpc/kernel/prom_init.c