OrangePi_CM5/drivers/net/ethernet/qlogic
Jamie Bainbridge 8928239e5e qede: confirm skb is allocated before using
[ Upstream commit 4e910dbe36508654a896d5735b318c0b88172570 ]

qede_build_skb() assumes build_skb() always works and goes straight
to skb_reserve(). However, build_skb() can fail under memory pressure.
This results in a kernel panic because the skb to reserve is NULL.

Add a check in case build_skb() failed to allocate and return NULL.

The NULL return is handled correctly in callers to qede_build_skb().

Fixes: 8a8633978b ("qede: Add build_skb() support.")
Signed-off-by: Jamie Bainbridge <jamie.bainbridge@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 21:01:06 +02:00
..
netxen netxen_nic: Fix an error handling path in 'netxen_nic_probe()' 2021-06-23 14:42:45 +02:00
qed qed: validate and restrict untrusted VFs vlan promisc mode 2022-04-08 14:39:52 +02:00
qede qede: confirm skb is allocated before using 2022-04-13 21:01:06 +02:00
qlcnic qlcnic: dcb: default to returning -EOPNOTSUPP 2022-04-08 14:40:29 +02:00
Kconfig qed: select CONFIG_CRC32 2021-01-17 14:17:02 +01:00
Makefile
…
qla3xxx.c net/qla3xxx: fix an error code in ql_adapter_up() 2021-12-14 11:32:43 +01:00
qla3xxx.h
…