Hi Michal,

On 12/04/2021 07:45, Michal Orzel wrote:
On 06.04.2021 21:15, Julien Grall wrote:
From: Julien Grall <[email protected]>

Currently, we are ignoring any error from perform_gunzip() and replacing
the compressed kernel with the "uncompressed" kernel.

If there is a gzip failure, then it means that the output buffer may
contain garbagge. So it can result to various sort of behavior that may
be difficult to root cause.

In case of failure, free the output buffer and propagate the error.
We also need to adjust the return check for kernel_compress() as
perform_gunzip() may return a positive value.

Take the opportunity to adjust the code style for the check.

Signed-off-by: Julien Grall <[email protected]>

---
     Changes in v2:
         - Fix build
---

Reviewed-by: Michal Orzel <[email protected]>

Thanks! @Stefano, can I get your acked-by?

Cheers,

--
Julien Grall

Reply via email to