summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-07-20 19:22:26 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-20 19:22:26 +0200
commitf58781c983393716e3d57398eb980a31121a5a7f (patch)
treec73a8d98da2844f5571221284478575026b23563 /kernel
parentMerge tag 'libnvdimm-fixes-4.13-rc2' of git://git.kernel.org/pub/scm/linux/ke... (diff)
parentaudit: fix memleak in auditd_send_unicast_skb. (diff)
downloadlinux-f58781c983393716e3d57398eb980a31121a5a7f.tar.xz
linux-f58781c983393716e3d57398eb980a31121a5a7f.zip
Merge branch 'stable-4.13' of git://git.infradead.org/users/pcmoore/audit
Pull audit fix from Paul Moore: "A small audit fix, just a single line, to plug a memory leak in some audit error handling code" * 'stable-4.13' of git://git.infradead.org/users/pcmoore/audit: audit: fix memleak in auditd_send_unicast_skb.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/audit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 833267bbd80b..6dd556931739 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -641,6 +641,7 @@ static int auditd_send_unicast_skb(struct sk_buff *skb)
ac = rcu_dereference(auditd_conn);
if (!ac) {
rcu_read_unlock();
+ kfree_skb(skb);
rc = -ECONNREFUSED;
goto err;
}