]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'nfp-protect-from-theoretical-size-overflows-and-SR-IOV-errors'
authorDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2018 05:17:45 +0000 (22:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2018 05:17:45 +0000 (22:17 -0700)
commit38bb149e55ddecb4a5ab3c17423331d843eb65df
tree4179e0924b2d71193267da4cc6d9a2e97dbd12fb
parentdfa7bcb1ab4f871a8b0df5f9ceab8fde38f19de6
parent1712006dca6ab7f414eb81c44d5429f35b30fe1e
Merge branch 'nfp-protect-from-theoretical-size-overflows-and-SR-IOV-errors'

Jakub Kicinski says:

====================
nfp: protect from theoretical size overflows and SR-IOV errors

This small set changes the handling of pci_sriov_set_totalvfs() errors.
nfp is the only driver which fails probe on pci_sriov_set_totalvfs()
errors.  It turns out some BIOS configurations may break SR-IOV and
users who don't use that feature should not suffer.

Remaining patches makes sure we use overflow-safe function for ring
allocation, even though ring sizes are limited.  It won't hurt and
we can also enable fallback to vmalloc() if memory is tight while
at it.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>