Re: [PATCH] util: fix: duplicated index at nested loop in virNVMeDeviceListCreateReAttachList

2021-07-29 Thread Michal Prívozník
On 7/29/21 1:51 PM, wang.y...@zte.com.cn wrote: > Hi Michal, > > Thanks for your reply. > >> On 7/29/21 4:16 AM, Yi Wang wrote: >>> From: Jia Zhou >>> >>> When loop in function virNVMeDeviceListCreateReAttachList() there may be >>> reused index @i, this patch fix this by using a new @j. >>> >>>

Re:[PATCH] util: fix: duplicated index at nested loop in virNVMeDeviceListCreateReAttachList

2021-07-29 Thread wang.yi59
Hi Michal, Thanks for your reply. > On 7/29/21 4:16 AM, Yi Wang wrote: > > From: Jia Zhou > > > > When loop in function virNVMeDeviceListCreateReAttachList() there may be > > reused index @i, this patch fix this by using a new @j. > > > > Signed-off-by: Jia Zhou > > Signed-off-by: Yi Wang > >

Re: [PATCH] util: fix: duplicated index at nested loop in virNVMeDeviceListCreateReAttachList

2021-07-29 Thread Michal Prívozník
On 7/29/21 4:16 AM, Yi Wang wrote: > From: Jia Zhou > > When loop in function virNVMeDeviceListCreateReAttachList() there may be > reused index @i, this patch fix this by using a new @j. > > Signed-off-by: Jia Zhou > Signed-off-by: Yi Wang > --- > src/util/virnvme.c | 6 +++--- > 1 file chang

[PATCH] util: fix: duplicated index at nested loop in virNVMeDeviceListCreateReAttachList

2021-07-28 Thread Yi Wang
From: Jia Zhou When loop in function virNVMeDeviceListCreateReAttachList() there may be reused index @i, this patch fix this by using a new @j. Signed-off-by: Jia Zhou Signed-off-by: Yi Wang --- src/util/virnvme.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/u