aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2025-01-30 17:36:14 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2025-01-30 17:36:14 -0800
commite20f2bb8b7b6047182066dde0a101e0660519f6a (patch)
treec1e8030b8ea4947ef15dca0b9c30e1243ba2f9aa
parentMerge tag 'acpi-6.14-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm (diff)
parentaudit: Initialize lsmctx to avoid memory allocation error (diff)
downloadwireguard-linux-e20f2bb8b7b6047182066dde0a101e0660519f6a.tar.xz
wireguard-linux-e20f2bb8b7b6047182066dde0a101e0660519f6a.zip
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
Diffstat (limited to '')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 13d0144efaa3..5f5bf85bcc90 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1221,7 +1221,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
struct audit_buffer *ab;
u16 msg_type = nlh->nlmsg_type;
struct audit_sig_info *sig_data;
- struct lsm_context lsmctx;
+ struct lsm_context lsmctx = { NULL, 0, 0 };
err = audit_netlink_ok(skb, msg_type);
if (err)