diff options
author | Klaus Jensen <k.jensen@samsung.com> | 2020-08-24 11:55:46 +0200 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2020-10-27 07:24:46 +0100 |
commit | fd90f26cc732b5c0f51140ba0d1f7fd31e8bf910 (patch) | |
tree | 578d8b270945f9994a5fd79b2472aa49ab49343c /stubs/qemu-timer-notify-cb.c | |
parent | 9994f72bd8c379eda01503ef6a7b06b7900110c5 (diff) | |
download | qemu-fd90f26cc732b5c0f51140ba0d1f7fd31e8bf910.zip qemu-fd90f26cc732b5c0f51140ba0d1f7fd31e8bf910.tar.gz qemu-fd90f26cc732b5c0f51140ba0d1f7fd31e8bf910.tar.bz2 |
hw/block/nvme: fix endian conversion
The raw NLB field is a 16 bit value, so use le16_to_cpu instead of
le32_to_cpu and cast to uint32_t before incrementing the value to not
wrap around.
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'stubs/qemu-timer-notify-cb.c')
0 files changed, 0 insertions, 0 deletions