]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
plugins/wdc: Fix narrow index variable type in for loop to __u32
authorTokunori Ikegami <ikegami.t@gmail.com>
Sun, 11 Feb 2024 15:06:04 +0000 (00:06 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 25 Mar 2024 09:37:15 +0000 (10:37 +0100)
Fix the comparison of narrow type with wide type in loop condition.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
plugins/wdc/wdc-nvme.c

index 67d51f51776c16fcc12c36057d5a38783bea89cb..75250550450e224fa5c8ddef4b1b42560fdcdb70 100644 (file)
@@ -9627,7 +9627,7 @@ static int wdc_de_get_dump_trace(struct nvme_dev *dev, char *filePath, __u16 bin
        __u32 chunkSize;
        __u32 chunks;
        __u32 offset;
-       __u16 i;
+       __u32 i;
        __u32 maximumTransferLength = 0;
 
        if (!dev || !binFileName || !filePath) {