summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorchen zhang <chenzhang@kylinos.cn>2025-12-15 19:15:00 +0800
committerChristian Brauner <brauner@kernel.org>2025-12-24 13:55:51 +0100
commit3685744afa4a2e65a4a509f1b782af98e929b83f (patch)
tree04bdb54dcd8f5bfa0d1ba94acef69d105200f84d /include/linux
parent3f320e5c2eca158e3b5dc2e633694ee7f348d970 (diff)
chardev: Switch to guard(mutex) and __free(kfree)
Instead of using the 'goto label; mutex_unlock()' pattern use 'guard(mutex)' which will release the mutex when it goes out of scope. Use the __free(kfree) cleanup to replace instances of manually calling kfree(). Also make some code path simplifications that this allows. Signed-off-by: chen zhang <chenzhang@kylinos.cn> Link: https://patch.msgid.link/20251215111500.159243-1-chenzhang@kylinos.cn Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions