Klaus Jensen fd90f26cc7 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>
2020-10-27 07:24:46 +01:00
..
2020-08-21 06:30:32 -04:00
2019-08-16 13:31:52 +02:00
2020-09-18 14:12:32 -04:00
2020-08-21 06:30:32 -04:00
2020-10-27 07:24:46 +01:00
2020-09-01 08:38:00 +02:00
2020-07-10 15:18:09 +02:00
2020-08-27 14:04:55 -04:00
2019-08-16 13:31:52 +02:00
2020-10-27 07:24:46 +01:00
2019-06-24 10:42:30 +01:00
2020-07-10 15:18:09 +02:00