Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1715330

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

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] nfp: fix infinite loop on umapping cleanup
Date 2017-08-18 19:30 +0200
Message-ID <ufTfP-6OC-7@gated-at.bofh.it> (permalink)
References <ufNtL-2V8-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Colin King <colin.king@canonical.com>
Date: Fri, 18 Aug 2017 12:11:50 +0100

> From: Colin Ian King <colin.king@canonical.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@canonical.com>

Applied and queued up for -stable.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] nfp: fix infinite loop on umapping cleanup Colin King <colin.king@canonical.com> - 2017-08-18 13:20 +0200
  Re: [oss-drivers] [PATCH] nfp: fix infinite loop on umapping  cleanup Jakub Kicinski <jakub.kicinski@netronome.com> - 2017-08-18 16:40 +0200
  Re: [PATCH] nfp: fix infinite loop on umapping cleanup David Miller <davem@davemloft.net> - 2017-08-18 19:30 +0200

csiph-web