]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-ima: more strlen() drops
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 5 Aug 2025 10:35:41 +0000 (13:35 +0300)
committerMikulas Patocka <mpatocka@redhat.com>
Tue, 19 Aug 2025 09:12:49 +0000 (11:12 +0200)
commita3191475d17c19826fff712cbd057032cb079399
treede8e085583d9673a6465cfd863f2649de0a549b3
parent5d1c82943f3beaa8b97eb11d865239cbab88e527
dm-ima: more strlen() drops

Following commit ebbd17695e9e ("dm: ima: avoid extra calls to
strlen()"), convert 'dm_ima_alloc_and_copy_capacity_str()' to
return the number of characters emitted by 'scnprintf()' and
simplify the users accordingly. Compile tested only.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-ima.c