mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
kallsyms_symbol_next() returns a boolean (true on success). Currently kdb_read() tests the return value with an inequality that unconditionally evaluates to true. This is fixed in the obvious way and, since the conditional branch is supposed to be unreachable, we also add a WARN_ON(). Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Daniel Thompson <[email protected]> Cc: linux-stable <[email protected]> Signed-off-by: Jason Wessel <[email protected]>