Skip to content
Commit 30abc9cd authored by Christian Eggers's avatar Christian Eggers Committed by Jakub Kicinski
Browse files

net: dsa: avoid potential use-after-free error



If dsa_switch_ops::port_txtstamp() returns false, clone will be freed
immediately. Shouldn't store a pointer to freed memory.

Signed-off-by: default avatarChristian Eggers <ceggers@arri.de>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Tested-by: default avatarVladimir Oltean <olteanv@gmail.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20201119110906.25558-1-ceggers@arri.de


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 2ed03e5a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment