Skip to content

Commit fc584a5

Browse files
committed
plugins/wdc: Fix narrow index variable type in for loop to __u32
Fix the comparison of narrow type with wide type in loop condition. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 90afb96 commit fc584a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/wdc/wdc-nvme.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9627,7 +9627,7 @@ static int wdc_de_get_dump_trace(struct nvme_dev *dev, char *filePath, __u16 bin
96279627
__u32 chunkSize;
96289628
__u32 chunks;
96299629
__u32 offset;
9630-
__u16 i;
9630+
__u32 i;
96319631
__u32 maximumTransferLength = 0;
96329632

96339633
if (!dev || !binFileName || !filePath) {

0 commit comments

Comments
 (0)