diff options
author | Aleksander Jan Bajkowski <olek2@wp.pl> | 2022-08-24 23:54:06 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-25 12:41:38 -0700 |
commit | c8b043702dc0894c07721c5b019096cebc8c798f (patch) | |
tree | 8c74a7e4a530a6e81e78362a455922335c4f30f1 /include/sound/wm5100.h | |
parent | a3a57bf07de23fe1ff779e0fdf710aa581c3ff73 (diff) |
net: lantiq_xrx200: confirm skb is allocated before using
xrx200_hw_receive() assumes build_skb() always works and goes straight
to skb_reserve(). However, build_skb() can fail under memory pressure.
Add a check in case build_skb() failed to allocate and return NULL.
Fixes: e015593573b3 ("net: lantiq_xrx200: convert to build_skb")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/sound/wm5100.h')
0 files changed, 0 insertions, 0 deletions