[PATCH v2 1/2] uncompress: use read_full to fill decompression buffer

Sascha Hauer sha at pengutronix.de
Wed May 26 23:50:55 PDT 2021


On Wed, May 26, 2021 at 11:02:15AM +0200, Lucas Stach wrote:
> The decompression algorithms want all of the requested buffer size
> to be filled and don't cope with less bytes being returned.
> Use read_full to satisfy this requirement.
> 
> Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
> ---
>  lib/uncompress.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list