]> www.infradead.org Git - users/hch/nvme-cli.git/commit
nvme-print: fix offset calculation in NS ID Descriptor list
authorSaar Gross <saarg@amazon.com>
Wed, 8 Apr 2020 00:24:47 +0000 (17:24 -0700)
committerKeith Busch <kbusch@kernel.org>
Wed, 8 Apr 2020 18:45:33 +0000 (12:45 -0600)
commit9b2ce6ca3ba7fbb8cc189ff21928893acc44fc9d
tree78a3a61061fa6897b23ef3b380c840b161181845
parent0f463754030e5967edb93c672d3942789dc71908
nvme-print: fix offset calculation in NS ID Descriptor list

The offset for the next entry in the list is based on the length (len)
of the previous entry, but len is erroneously accumulated instead of
being set. This works fine for the first and second entry in the list
but will fail to reach the correct offset for the 3rd entry and beyond.

Signed-off-by: Saar Gross <saarg@amazon.com>
nvme-print.c