kconfig: don't crash on NULL expressions in expr_eq()
authorThomas Hebb <tommyhebb@gmail.com>
Mon, 9 Dec 2019 08:19:17 +0000 (00:19 -0800)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 1 Feb 2020 18:07:54 +0000 (19:07 +0100)
commit26ed147bb322afcf071ef4e5eb595480221430dc
treeb8865221f3c03a35481574fee4102396ef021d9c
parent64244d1d068fbfdc9f8e8679ac663622d4957304
kconfig: don't crash on NULL expressions in expr_eq()

NULL expressions are taken to always be true, as implemented by the
expr_is_yes() macro and by several other functions in expr.c. As such,
they ought to be valid inputs to expr_eq(), which compares two
expressions.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/expr.c