Re: [PATCH] counter: interrupt-cnt: use devm_mutex_init()

From: William Breathitt Gray

Date: Sat May 23 2026 - 18:51:58 EST


On Sat, May 23, 2026 at 11:44:18PM +0500, Stepan Ionichev wrote:
> interrupt_cnt_probe() calls mutex_init() but neither this driver
> nor the counter core issues a matching mutex_destroy() on unbind,
> so the lock debug state is leaked.
>
> Switch to devm_mutex_init() so the mutex is torn down in the same
> devm scope it was set up in.
>
> Signed-off-by: Stepan Ionichev <sozdayvek@xxxxxxxxx>

This sounds like a bug fix (albeit applicable only under
CONFIG_DEBUG_MUTEXES) so we should have a Fixes tag here, correct?

If this issue applies to counter-core and counter-chrdev, would you
submit patches for them as well?

William Breathitt Gray