diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-08-18 12:11:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-18 10:28:06 -0700 |
commit | eac2c68d663effb077210218788952b5a0c1f60e (patch) | |
tree | fcd5bc7f3dd1f73d6f767626de623b55eaf8cd36 /drivers/dma/ste_dma40_ll.c | |
parent | acc8b31665b4cc17b35c4fa445427f7e2f6dc86b (diff) |
nfp: fix infinite loop on umapping cleanup
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>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/dma/ste_dma40_ll.c')
0 files changed, 0 insertions, 0 deletions