]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: qe: avoid double free()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 27 Dec 2020 10:48:49 +0000 (11:48 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 18 Jan 2021 20:23:06 +0000 (15:23 -0500)
commit80b1ef942d96a6025c96305284f83bc0a8aa194e
treea8b8309404b2a5232d6a4da5156c6a5c9de815f8
parentf11b38e3aeb77b12f14502ff8eafd21737228c30
drivers: qe: avoid double free()

Avoid calling free(addr) twice if the device for ucode is not found.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/qe/qe.c