Skip to content
Commit 766f04a2 authored by Sean Anderson's avatar Sean Anderson Committed by Mattijs Korpershoek
Browse files

lib: sparse: Fix error checking for write_sparse_chunk_raw



The return value of write_sparse_chunk_raw is unsigned, so the existing
check has no effect. Use IS_ERR_VALUE to detect error instead, which is
what write_sparse_chunk_raw does itself.

Fixes: 62649165 ("lib: sparse: Make CHUNK_TYPE_RAW buffer aligned")
Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/u-boot/1b323ec3-59b0-490b-a2f0-fd961dafcf49@moroto.mountain/


Signed-off-by: default avatarSean Anderson <sean.anderson@seco.com>
Reviewed-by: default avatarMichael Trimarchi <michael@amarulasolutions.com>
Reviewed-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240201181851.221701-1-sean.anderson@seco.com


Signed-off-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
parent ec19e113
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