diff options
author | 2022-04-06 21:19:19 +1000 | |
---|---|---|
committer | 2022-04-06 15:16:23 +0100 | |
commit | 4e910dbe36508654a896d5735b318c0b88172570 (patch) | |
tree | 2b6b7184811726861e546c8be7ee6f136ff6ac07 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: ipv6mr: fix unused variable warning with CONFIG_IPV6_PIMSM_V2=n (diff) | |
download | wireguard-linux-4e910dbe36508654a896d5735b318c0b88172570.tar.xz wireguard-linux-4e910dbe36508654a896d5735b318c0b88172570.zip |
qede: confirm skb is allocated before using
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: 8a8633978b842 ("qede: Add build_skb() support.")
Signed-off-by: Jamie Bainbridge <jamie.bainbridge@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions