[ 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:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| qede.h | ||
| qede_dcbnl.c | ||
| qede_ethtool.c | ||
| qede_filter.c | ||
| qede_fp.c | ||
| qede_main.c | ||
| qede_ptp.c | ||
| qede_ptp.h | ||
| qede_rdma.c | ||