On 06.04.2021 21:15, Julien Grall wrote: > From: Julien Grall <jgr...@amazon.com> > > 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 <jgr...@amazon.com> > > --- > Changes in v2: > - Fix build > ---
Reviewed-by: Michal Orzel <michal.or...@arm.com>