Skip to content

Commit b47c182

Browse files
committed
Merge tag 'fsverity-for-linus' of git://git.kernel.org/pub/scm/fs/fsverity/linux
Pull fsverity update from Eric Biggers: "Fix a false positive kmemleak warning" * tag 'fsverity-for-linus' of git://git.kernel.org/pub/scm/fs/fsverity/linux: fsverity: use register_sysctl_init() to avoid kmemleak warning
2 parents fc883e7 + ee5814d commit b47c182

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

fs/verity/init.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#include <linux/ratelimit.h>
1111

1212
#ifdef CONFIG_SYSCTL
13-
static struct ctl_table_header *fsverity_sysctl_header;
14-
1513
static struct ctl_table fsverity_sysctl_table[] = {
1614
#ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES
1715
{
@@ -28,10 +26,7 @@ static struct ctl_table fsverity_sysctl_table[] = {
2826

2927
static void __init fsverity_init_sysctl(void)
3028
{
31-
fsverity_sysctl_header = register_sysctl("fs/verity",
32-
fsverity_sysctl_table);
33-
if (!fsverity_sysctl_header)
34-
panic("fsverity sysctl registration failed");
29+
register_sysctl_init("fs/verity", fsverity_sysctl_table);
3530
}
3631
#else /* CONFIG_SYSCTL */
3732
static inline void fsverity_init_sysctl(void)

0 commit comments

Comments
 (0)