diff options
author | Minwoo Im | 2021-02-05 18:03:20 +0100 |
---|---|---|
committer | Klaus Jensen | 2021-03-09 11:00:58 +0100 |
commit | 5215e60600b0bc0a011f4456e0f0a0d9376d9133 (patch) | |
tree | f2f0cb54930d1704fa77a7cc9fd8067b2413a23d /hw/usb | |
parent | hw/block/nvme: support namespace detach (diff) | |
download | qemu-5215e60600b0bc0a011f4456e0f0a0d9376d9133.tar.gz qemu-5215e60600b0bc0a011f4456e0f0a0d9376d9133.tar.xz qemu-5215e60600b0bc0a011f4456e0f0a0d9376d9133.zip |
hw/block/nvme: fix namespaces array to 1-based
subsys->namespaces array used to be sized to NVME_SUBSYS_MAX_NAMESPACES.
But subsys->namespaces are being accessed with 1-based namespace id
which means the very first array entry will always be empty(NULL).
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Tested-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/usb')
0 files changed, 0 insertions, 0 deletions