Re: [PATCH net-next v2] net: dsa: avoid potential use-after-free error
From: Florian Fainelli
Date: Fri Nov 20 2020 - 13:18:00 EST
On 11/19/20 3:09 AM, Christian Eggers wrote:
> If dsa_switch_ops::port_txtstamp() returns false, clone will be freed
> immediately. Shouldn't store a pointer to freed memory.
>
> Signed-off-by: Christian Eggers <ceggers@xxxxxxx>
> Fixes: 146d442c2357 ("net: dsa: Keep a pointer to the skb clone for TX timestamping")
Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian