On Tue, Jan 21, 2020 at 11:53:38AM -0500, Tom Rini wrote:

> New analysis by the tool has shown that we have some cases where we
> weren't handling the error exit condition correctly.  When we ran into
> the ENOMEM case we wouldn't exit the function and thus incorrect things
> could happen.  Rework the unwinding such that we don't need a helper
> function now and free what we may have allocated.
> 
> Fixes: 18030d04d25d ("GPT: fix memory leaks identified by Coverity")
> Reported-by: Coverity (CID: 275475, 275476)
> Cc: Alison Chaiken <[email protected]>
> Cc: Simon Goldschmidt <[email protected]>
> Cc: Jordy <[email protected]>
> Signed-off-by: Tom Rini <[email protected]>
> Reviewed-by: Simon Goldschmidt <[email protected]>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to