diff options
author | Christian Eggers <[email protected]> | 2020-11-19 12:09:06 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2020-11-20 15:02:50 -0800 |
commit | 30abc9cd9c6bdd44d23fc49a9c2526a86fba4305 (patch) | |
tree | 7da17b6f555ed2f109b7ea236e1056f756cbd6b5 /net/lapb/lapb_timer.c | |
parent | 2ed03e5a84cacddfbf2c8e4442b18679c219bb68 (diff) |
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: Christian Eggers <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Tested-by: Vladimir Oltean <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions