summary refs log tree commit diff stats
path: root/python/qemu/machine/machine.py
diff options
context:
space:
mode:
authorKlaus Jensen <k.jensen@samsung.com>2021-06-17 21:06:51 +0200
committerKlaus Jensen <k.jensen@samsung.com>2021-06-29 07:16:25 +0200
commit189a8bf7f64aff9c2e26a6e6f2adc654eb9bbe81 (patch)
tree48302f832b705b9dc0be7d84c057853490fdfd3c /python/qemu/machine/machine.py
parent0ca5c3ccac72ce58a11f97b74f304934df72e90a (diff)
downloadfocaccia-qemu-189a8bf7f64aff9c2e26a6e6f2adc654eb9bbe81.tar.gz
focaccia-qemu-189a8bf7f64aff9c2e26a6e6f2adc654eb9bbe81.zip
hw/nvme: remove assert from nvme_get_zone_by_slba
Make nvme_get_zone_by_slba() return NULL if the slba is out of range.
This allows the function to be used without guarding the call with a
call to nvme_check_bounds(), in preparation for the next patch.

Add asserts after calling nvme_get_zone_by_slba() instead.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'python/qemu/machine/machine.py')
0 files changed, 0 insertions, 0 deletions