diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index dc7660074b992190dad09e63b0a456ebd86cef7d..5feecb41009d58420d5c702cbde9455d64b112fb 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3329,7 +3329,7 @@ static int selinux_kernel_create_files_as(struct cred *new, struct inode *inode)
 
 	if (ret == 0)
 		tsec->create_sid = isec->sid;
-	return 0;
+	return ret;
 }
 
 static int selinux_kernel_module_request(char *kmod_name)