Skip to content
Snippets Groups Projects
Commit 4b32319c authored by Klaus Jensen's avatar Klaus Jensen
Browse files

hw/nvme: fix memory leak in nvme_dsm


The iocb (and the allocated memory to hold LBA ranges) leaks if reading
the LBA ranges fails.

Fix this by adding a free and an unref of the iocb.

Reported-by: Coverity (CID 1508281)
Fixes: d7d1474f ("hw/nvme: reimplement dsm to allow cancellation")
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: default avatarKlaus Jensen <k.jensen@samsung.com>
parent cb16e5c7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment