Andrew Goodbody f074616014 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>
2025-07-10 08:41:23 -06:00
..
2025-01-20 19:26:54 -06:00
2025-04-11 12:16:44 -06:00
2024-06-24 13:34:52 -06:00
2022-02-10 16:44:23 -05:00