Re: [Bridge] [PATCH net] net: bridge: fix uninitialized variables when BRIDGE_CFM is disabled

2021-10-27 Thread Ivan Vecera
On Wed, 27 Oct 2021 16:54:39 +0300 Nikolay Aleksandrov wrote: > On 27/10/2021 16:49, Ivan Vecera wrote: > > Function br_get_link_af_size_filtered() calls br_cfm_{,peer}_mep_count() > > but does not check their return value. When BRIDGE_CFM is not enabled > > these functions return -EOPNOTSUPP but

Re: [Bridge] [PATCH net] net: bridge: fix uninitialized variables when BRIDGE_CFM is disabled

2021-10-27 Thread Nikolay Aleksandrov via Bridge
On 27/10/2021 16:49, Ivan Vecera wrote: > Function br_get_link_af_size_filtered() calls br_cfm_{,peer}_mep_count() > but does not check their return value. When BRIDGE_CFM is not enabled > these functions return -EOPNOTSUPP but do not modify count parameter. > Calling function then works with unini

[Bridge] [PATCH net] net: bridge: fix uninitialized variables when BRIDGE_CFM is disabled

2021-10-27 Thread Ivan Vecera
Function br_get_link_af_size_filtered() calls br_cfm_{,peer}_mep_count() but does not check their return value. When BRIDGE_CFM is not enabled these functions return -EOPNOTSUPP but do not modify count parameter. Calling function then works with uninitialized variables. Fixes: b6d0425b816e ("bridg