drivers: qe: avoid double free()
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 8 Aug 2025 10:29:33 +0000 (11:29 +0100)
committerPeng Fan <peng.fan@nxp.com>
Wed, 27 Aug 2025 07:49:59 +0000 (15:49 +0800)
commitdc37adfc040877db359abdc7eab19adffb8fc722
tree885c6c8ef7a1806f09e71578a8d27e87fa125a9c
parent05b11146363039a00bff09c77be077ebdaf1f5d0
drivers: qe: avoid double free()

Avoid calling free(addr) twice if the device for ucode is not found.
This patch repeats a similar fix but that only applied to code without
CONFIG_TFABOOT enabled. This patch applies to the code with
CONFIG_TFABOOT enabled.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/qe/qe.c