diff options
author | Keith Busch <kbusch@kernel.org> | 2020-09-30 10:01:02 -0700 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2020-10-27 11:29:25 +0100 |
commit | a740facfbd05c9dd630e1f992a9dc6b5444096a7 (patch) | |
tree | 40b4fc09f755275e6e00cd7291d0868f4181b41f /hw/block/fdc.c | |
parent | 8c125590dfa33699a267c797a41939c1ac8b77bf (diff) |
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 'hw/block/fdc.c')
0 files changed, 0 insertions, 0 deletions