linux-stable/drivers/net/ethernet/netronome
Jakub Kicinski 09b857945b nfp: don't set aux pointers if ioremap failed
If ioremap of PCIe ctrl memory failed we can still get to it through
PCI config space, therefore we allow ioremap() to fail.  When if fails,
however, we must leave all the IOMEM pointers as NULL.  Currently we
would calculate csr and em pointers, adding offsets to the potential
NULL value and therefore making the NULL-checks throughout the code
ineffective.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-30 11:27:04 -04:00
..
nfp nfp: don't set aux pointers if ioremap failed 2017-05-30 11:27:04 -04:00
Kconfig nfp: add MAY_USE_DEVLINK dependency 2017-05-30 11:27:03 -04:00
Makefile nfp: rename the driver and add new main file 2017-02-10 15:52:24 -05:00