]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/nvme: fix verification of number of ruhis
authorKlaus Jensen <k.jensen@samsung.com>
Wed, 24 May 2023 09:28:34 +0000 (11:28 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Wed, 28 Jun 2023 09:22:17 +0000 (11:22 +0200)
commit3ae8a54a087d54cfd109ab3d844ff4cba54a28d8
tree0d9c7d8e3074d00aee2c88f9f084241e267ae7fc
parent381ab99d858709eab34b65d123a6356b8b1e87bd
hw/nvme: fix verification of number of ruhis

Fix a off-by-one error when verifying the number of reclaim unit handle
identifiers specified in fdp.ruhs. To make the fix nicer, move the
verification of the fdp.nruh parameter to an earlier point.

Fixes: 73064edfb864 ("hw/nvme: flexible data placement emulation")
Reviewed-by: Jesper Wendel Devantier <j.devantier@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ns.c
hw/nvme/subsys.c