aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2020-09-30 10:01:02 -0700
committerKlaus Jensen <k.jensen@samsung.com>2020-10-27 11:29:25 +0100
commita740facfbd05c9dd630e1f992a9dc6b5444096a7 (patch)
tree40b4fc09f755275e6e00cd7291d0868f4181b41f /scripts
parent8c125590dfa33699a267c797a41939c1ac8b77bf (diff)
downloadqemu-a740facfbd05c9dd630e1f992a9dc6b5444096a7.zip
qemu-a740facfbd05c9dd630e1f992a9dc6b5444096a7.tar.gz
qemu-a740facfbd05c9dd630e1f992a9dc6b5444096a7.tar.bz2
hw/block/nvme: fix log page offset check
Return error if the requested offset starts after the size of the log being returned. Also, move the check for earlier in the function so we're not doing unnecessary calculations. Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed- by: Dmitry Fomichev <dmitry.fomichev@wdc.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions