Re: [PATCH v3 1/3] net: dsa: ksz: Check return value

From: Florian Fainelli
Date: Thu Dec 01 2022 - 16:01:50 EST




On 12/1/2022 6:00 AM, Artem Chernyshev wrote:
Return NULL if we got unexpected value from skb_trim_rcsum()
in ksz_common_rcv()

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: bafe9ba7d908 ("net: dsa: ksz: Factor out common tag code")
Signed-off-by: Artem Chernyshev <artem.chernyshev@xxxxxxxxxxx>
Reviewed-by: Vladimir Oltean <olteanv@xxxxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian