Unverified Commit 589c12ed authored by Dan Carpenter's avatar Dan Carpenter Committed by Christian Brauner
Browse files

coredump: Fix return value in coredump_parse()



The coredump_parse() function is bool type.  It should return true on
success and false on failure.  The cn_printf() returns zero on success
or negative error codes.  This mismatch means that when "return err;"
here, it is treated as success instead of failure.  Change it to return
false instead.

Fixes: a5715af5 ("coredump: make coredump_parse() return bool")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/aKRGu14w5vPSZLgv@stanley.mountain


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 7375f224
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment