Re: [PATCH 1/2] cgroup-v1: Fix missing mutex_unlock in error paths

From: Markus Elfring
Date: Fri Jul 18 2025 - 08:24:13 EST


> In the function, after acquiring the mutex with mutex_lock, multiple return
> paths (such as returning ERR_PTR, NULL, or normal pointers)fail to call
> mutex_unlock to release the lock, which could lead to deadlock risks.

How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.16-rc6#n94


Will a cover letter become helpful for such a patch series?

Regards,
Markus