diff options
| author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-07-02 17:02:10 +0100 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2025-07-10 08:41:23 -0600 |
| commit | f074616014179eefbca6f4b86b1fa6336711ba80 (patch) | |
| tree | 510cb7e6d4f31f8fb0147fe421a627d10159dd13 /boot/bootmeth_rauc.c | |
| parent | 39b836d898782e31961afd16769c46d7f2730858 (diff) | |
nvme: Fix memory leak on error path of nvme_init
The use of log_msg_ret to log a message and return an error meant that
memory allocated earlier in the function was not freed on this error
path. Instead log the message in the same way that log_msg_ret would do
and then goto the cleanup code to free the memory.
This issue found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Diffstat (limited to 'boot/bootmeth_rauc.c')
0 files changed, 0 insertions, 0 deletions
