Skip to content

Commit e20f2bb

Browse files
committed
Merge tag 'audit-pr-20250130' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit
Pull audit fix from Paul Moore: "A minor audit patch to fix an unitialized variable problem" * tag 'audit-pr-20250130' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit: audit: Initialize lsmctx to avoid memory allocation error
2 parents 47cbb41 + 35fcac7 commit e20f2bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/audit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
12211221
struct audit_buffer *ab;
12221222
u16 msg_type = nlh->nlmsg_type;
12231223
struct audit_sig_info *sig_data;
1224-
struct lsm_context lsmctx;
1224+
struct lsm_context lsmctx = { NULL, 0, 0 };
12251225

12261226
err = audit_netlink_ok(skb, msg_type);
12271227
if (err)

0 commit comments

Comments
 (0)