]> xenbits.xensource.com Git - osstest/seabios.git/commitdiff
nvme: fix LBA format data structure
authorFlorian Larysch <fl@n621.de>
Sun, 23 Jan 2022 16:43:57 +0000 (17:43 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 3 Feb 2022 22:50:00 +0000 (17:50 -0500)
The LBA Format Data structure is dword-sized, but struct nvme_lba_format
erroneously contains an additional member, misaligning all LBAF
descriptors after the first and causing them to be misinterpreted.
Remove it.

Signed-off-by: Florian Larysch <fl@n621.de>
Reviewed-by: Alexander Graf <graf@amazon.com>
src/hw/nvme-int.h

index f9c807ef7b220302707f742fdcf4ca61895e265c..1c972635a1d982bdc45f410d0c9115f8d1a6bd3b 100644 (file)
@@ -146,7 +146,6 @@ struct nvme_lba_format {
     u16 ms;
     u8  lbads;
     u8  rp;
-    u8  res;
 };
 
 struct nvme_identify_ns {