Re: [PATCH v2 1/2] rcuscale: Do a proper cleanup if kfree_scale_init() fails

2024-11-13 Thread Neeraj Upadhyay
On 11/13/2024 4:30 PM, Uladzislau Rezki (Sony) wrote: > A static analyzer for C, Smatch, reports and triggers below > warnings: > >kernel/rcu/rcuscale.c:1215 rcu_scale_init() >warn: inconsistent returns 'global &fullstop_mutex'. > > The checker complains about, we do not unlock the "fu

[PATCH v2 1/2] rcuscale: Do a proper cleanup if kfree_scale_init() fails

2024-11-13 Thread Uladzislau Rezki (Sony)
A static analyzer for C, Smatch, reports and triggers below warnings: kernel/rcu/rcuscale.c:1215 rcu_scale_init() warn: inconsistent returns 'global &fullstop_mutex'. The checker complains about, we do not unlock the "fullstop_mutex" mutex, in case of hitting below error path: ... if