Re: [PATCH] nfp: fix infinite loop on umapping cleanup

2017-08-18 Thread David Miller
From: Colin King Date: Fri, 18 Aug 2017 12:11:50 +0100 > From: Colin Ian King > > The while loop that performs the dma page unmapping never decrements > index counter f and hence loops forever. Fix this with a pre-decrement > on f. > >

Re: [PATCH] nfp: fix infinite loop on umapping cleanup

2017-08-18 Thread David Miller
From: Colin King Date: Fri, 18 Aug 2017 12:11:50 +0100 > From: Colin Ian King > > The while loop that performs the dma page unmapping never decrements > index counter f and hence loops forever. Fix this with a pre-decrement > on f. > > Detected by CoverityScan, CID#1357309 ("Infinite loop") >

Re: [oss-drivers] [PATCH] nfp: fix infinite loop on umapping cleanup

2017-08-18 Thread Jakub Kicinski
On Fri, 18 Aug 2017 12:11:50 +0100, Colin King wrote: > From: Colin Ian King > > The while loop that performs the dma page unmapping never decrements > index counter f and hence loops forever. Fix this with a pre-decrement > on f. > > Detected by CoverityScan,

Re: [oss-drivers] [PATCH] nfp: fix infinite loop on umapping cleanup

2017-08-18 Thread Jakub Kicinski
On Fri, 18 Aug 2017 12:11:50 +0100, Colin King wrote: > From: Colin Ian King > > The while loop that performs the dma page unmapping never decrements > index counter f and hence loops forever. Fix this with a pre-decrement > on f. > > Detected by CoverityScan, CID#1357309 ("Infinite loop") > >

[PATCH] nfp: fix infinite loop on umapping cleanup

2017-08-18 Thread Colin King
From: Colin Ian King The while loop that performs the dma page unmapping never decrements index counter f and hence loops forever. Fix this with a pre-decrement on f. Detected by CoverityScan, CID#1357309 ("Infinite loop") Fixes: 4c3523623dc0 ("net: add driver for

[PATCH] nfp: fix infinite loop on umapping cleanup

2017-08-18 Thread Colin King
From: Colin Ian King The while loop that performs the dma page unmapping never decrements index counter f and hence loops forever. Fix this with a pre-decrement on f. Detected by CoverityScan, CID#1357309 ("Infinite loop") Fixes: 4c3523623dc0 ("net: add driver for Netronome NFP4000/NFP6000 NIC