From a97232a11c7da6fd7558643cfd2dead3afd07e99 Mon Sep 17 00:00:00 2001 From: stevegalbraith Date: Wed, 27 May 2015 11:20:08 -0700 Subject: [PATCH] Found another instance of flbas being used as an index. Same fix was applied as in pull request #12. --- nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme.c b/nvme.c index 599c5484..a346ea71 100644 --- a/nvme.c +++ b/nvme.c @@ -1274,7 +1274,7 @@ static void print_list_item(struct list_item list_item) nsze, s_suffix); char format[128]; sprintf(format,"%3.0f %2sB + %2d B", (double)lba, l_suffix, - list_item.ns.lbaf[list_item.ns.flbas].ms); + list_item.ns.lbaf[(list_item.ns.flbas & 0x0f)].ms); char version[128]; sprintf(version,"%d.%d", (list_item.ver >> 16), (list_item.ver >> 8) & 0xff); -- 2.50.1