Merge branch 'landlock_lsm_v34' into next-testing

Added flags to landlock_create_ruleset(2) to allow for future
changes to ruleset format.
diff --git a/security/commoncap.c b/security/commoncap.c
index 1c519c8..5cdeb73 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -400,7 +400,7 @@
 				      &tmpbuf, size, GFP_NOFS);
 	dput(dentry);
 
-	if (ret < 0)
+	if (ret < 0 || !tmpbuf)
 		return ret;
 
 	fs_ns = inode->i_sb->s_user_ns;