Commit 6c8f8456 authored by Klaus Jensen's avatar Klaus Jensen 🍻
Browse files

hw/nvme: fix null pointer access in directive receive

nvme_directive_receive() does not check if an endurance group has been
configured (set) prior to testing if flexible data placement is enabled
or not.

Fix this.

Cc: qemu-stable@nongnu.org
Resolves: #1815
Fixes: 73064edf

 ("hw/nvme: flexible data placement emulation")
Reviewed-by: default avatarJesper Wendel Devantier <j.devantier@samsung.com>
Signed-off-by: default avatarKlaus Jensen <k.jensen@samsung.com>
parent a8fc5165
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment