Skip to content
Commit 68501df9 authored by Navid Emamdoost's avatar Navid Emamdoost Committed by David S. Miller
Browse files

net: dsa: sja1105: Prevent leaking memory



In sja1105_static_config_upload, in two cases memory is leaked: when
static_config_buf_prepare_for_upload fails and when sja1105_inhibit_tx
fails. In both cases config_buf should be released.

Fixes: 8aa9ebcc ("net: dsa: Introduce driver for NXP SJA1105 5-port L2 switch")
Fixes: 1a4c6940 ("net: dsa: sja1105: Prevent PHY jabbering during switch reset")
Signed-off-by: default avatarNavid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: default avatarVladimir Oltean <olteanv@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b6f2494d
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