linux/drivers/net/ethernet/sfc
Jiasheng Jiang 407ecd1bd7 sfc_ef100: potential dereference of null pointer
The return value of kmalloc() needs to be checked.
To avoid use in efx_nic_update_stats() in case of the failure of alloc.

Fixes: b593b6f1b4 ("sfc_ef100: statistics gathering")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-12-16 10:55:32 +00:00
..
falcon sfc: use swap() to make code cleaner 2021-11-05 10:14:38 +00:00
bitfield.h
ef10.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
ef10_regs.h
ef10_sriov.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
ef10_sriov.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
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-16 10:55:32 +00:00
ef100_nic.h
ef100_regs.h
ef100_rx.c
ef100_rx.h
ef100_tx.c
ef100_tx.h
efx.c ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
efx.h
efx_channels.c sfc: last resort fallback for lack of xdp tx queues 2021-09-09 11:17:37 +01:00
efx_channels.h
efx_common.c ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
efx_common.h
enum.h
ethtool.c ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
ethtool_common.c sfc: Fix reading non-legacy supported link modes 2021-10-18 14:28:02 +01:00
ethtool_common.h
farch.c
farch_regs.h
filter.h
io.h
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile
mcdi.c
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-10-21 12:38:34 +01:00
mcdi_port_common.h
mtd.c
net_driver.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
nic.c net:sfc: fix non-freed irq in legacy irq mode 2021-05-21 14:51:10 -07:00
nic.h
nic_common.h
ptp.c sfc: Don't use netif_info before net_device setup 2021-10-21 12:39:13 +01:00
ptp.h
rx.c sfc: Remove rcu_read_lock() around XDP program invocation 2021-06-24 19:46:01 +02:00
rx_common.c
rx_common.h
selftest.c
selftest.h
siena.c
siena_sriov.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-10-22 11:41:16 +01:00
siena_sriov.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
sriov.c
sriov.h
tx.c sfc: last resort fallback for lack of xdp tx queues 2021-09-09 11:17:37 +01:00
tx.h
tx_common.c
tx_common.h
tx_tso.c
vfdi.h
workarounds.h