OrangePi_CM5/drivers/net/ethernet/sfc
Martin Habets d8992b393f sfc: Do not free an empty page_ring
[ Upstream commit 458f5d92df4807e2a7c803ed928369129996bf96 ]

When the page_ring is not used page_ptr_mask is 0.
Do not dereference page_ring[0] in this case.

Fixes: 2768935a46 ("sfc: reuse pages to avoid DMA mapping/unmapping costs")
Reported-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 21:01:05 +02:00
..
falcon sfc: The RX page_ring is optional 2022-01-11 15:24:59 +01:00
Kconfig
…
Makefile
…
bitfield.h
…
ef10.c sfc: ef10: fix TX queue lookup in TX event handling 2021-05-14 09:50:41 +02:00
ef10_regs.h
…
ef10_sriov.c sfc: error code if SRIOV cannot be disabled 2021-07-19 09:44:52 +02:00
ef10_sriov.h
…
ef100.c
…
ef100.h
…
ef100_ethtool.c
…
ef100_ethtool.h
…
ef100_netdev.c
…
ef100_netdev.h
…
ef100_nic.c sfc_ef100: potential dereference of null pointer 2021-12-22 09:30:55 +01:00
ef100_nic.h
…
ef100_regs.h
…
ef100_rx.c
…
ef100_rx.h
…
ef100_tx.c
…
ef100_tx.h
…
efx.c
…
efx.h
…
efx_channels.c sfc: ensure correct number of XDP queues 2021-07-28 14:35:48 +02:00
efx_channels.h
…
efx_common.c
…
efx_common.h
…
enum.h
…
ethtool.c
…
ethtool_common.c sfc: Fix reading non-legacy supported link modes 2021-11-06 14:10:08 +01:00
ethtool_common.h
…
farch.c
…
farch_regs.h
…
filter.h
…
io.h
…
mcdi.c sfc: extend the locking on mcdi->seqno 2022-03-19 13:44:46 +01:00
mcdi.h
…
mcdi_filters.c
…
mcdi_filters.h
…
mcdi_functions.c
…
mcdi_functions.h
…
mcdi_mon.c
…
mcdi_pcol.h
…
mcdi_port.c
…
mcdi_port.h
…
mcdi_port_common.c sfc: Export fibre-specific supported link modes 2021-11-18 14:03:41 +01:00
mcdi_port_common.h
…
mtd.c
…
net_driver.h
…
nic.c net:sfc: fix non-freed irq in legacy irq mode 2021-06-16 12:01:36 +02:00
nic.h
…
nic_common.h
…
ptp.c sfc: Don't use netif_info before net_device setup 2021-11-18 14:03:41 +01:00
ptp.h
…
rx.c
…
rx_common.c sfc: Do not free an empty page_ring 2022-04-13 21:01:05 +02:00
rx_common.h
…
selftest.c
…
selftest.h
…
siena.c
…
siena_sriov.c sfc: Don't use netif_info before net_device setup 2021-11-18 14:03:41 +01:00
siena_sriov.h
…
sriov.c
…
sriov.h
…
tx.c
…
tx.h
…
tx_common.c
…
tx_common.h
…
tx_tso.c
…
vfdi.h
…
workarounds.h
…