[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170818.102919.1311901104192299250.davem@davemloft.net>
Date: Fri, 18 Aug 2017 10:29:19 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: simon.horman@...ronome.com, daniel@...earbox.net,
oss-drivers@...ronome.com, netdev@...r.kernel.org,
jakub.kicinski@...ronome.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nfp: fix infinite loop on umapping cleanup
From: Colin King <colin.king@...onical.com>
Date: Fri, 18 Aug 2017 12:11:50 +0100
> From: Colin Ian King <colin.king@...onical.com>
>
> 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 VFs")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists