]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: hellcreek: Check return value
authorArtem Chernyshev <artem.chernyshev@red-soft.ru>
Thu, 1 Dec 2022 14:00:31 +0000 (17:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 3 Dec 2022 04:46:52 +0000 (20:46 -0800)
commitd4edb50688652eb10be270bc515da63815de428f
treeb8b6d7d63316e346271ceaea6a006ee9a9c8b169
parent3d8fdcbf1f42e2bb9ae8b8c0b6f202278c788a22
net: dsa: hellcreek: Check return value

Return NULL if we got unexpected value from skb_trim_rcsum()
in hellcreek_rcv()

Fixes: 01ef09caad66 ("net: dsa: Add tag handling for Hirschmann Hellcreek switches")
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Link: https://lore.kernel.org/r/20221201140032.26746-2-artem.chernyshev@red-soft.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/tag_hellcreek.c