]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selinux: use QSTR() instead of QSTR_INIT() in init_sel_fs
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 22 Apr 2026 12:31:06 +0000 (14:31 +0200)
committerPaul Moore <paul@paul-moore.com>
Mon, 27 Apr 2026 22:24:08 +0000 (18:24 -0400)
Drop the length argument and use the simpler QSTR().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/selinuxfs.c

index 83aa765a09f98db90936ca898e9ed92982572891..8c107af5140e535d70c5dde99be60b8779462330 100644 (file)
@@ -2107,8 +2107,7 @@ struct path selinux_null __ro_after_init;
 
 int __init init_sel_fs(void)
 {
-       struct qstr null_name = QSTR_INIT(NULL_FILE_NAME,
-                                         sizeof(NULL_FILE_NAME)-1);
+       struct qstr null_name = QSTR(NULL_FILE_NAME);
        int err;
 
        if (!selinux_enabled_boot)