… > +++ b/drivers/a2b/a2b.c > @@ -0,0 +1,1252 @@ … > +unsigned long a2b_bus_status(struct a2b_bus *bus) > +{ > + unsigned long status; > + > + mutex_lock(&bus->mutex); > + status = bus->status; > + mutex_unlock(&bus->mutex); > + > + return status; > +} … How do you think about to increase the application of scope-base resource management also for such software components? https://elixir.bootlin.com/linux/v6.9.1/source/include/linux/cleanup.h#L124 Regards, Markus