Re: [PATCH net] net: dsa: sja1105: Prevent leaking memory

2019-09-30 Thread David Miller
From: Vladimir Oltean Date: Sun, 29 Sep 2019 01:43:39 +0300 > From: Navid Emamdoost > > 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:

[PATCH net] net: dsa: sja1105: Prevent leaking memory

2019-09-28 Thread Vladimir Oltean
From: Navid Emamdoost 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: 8aa9ebccae87 ("net: dsa: Introduce driver for NXP SJA1105 5-port L2 switch