Skip to content

Commit

Permalink
Merge branch 'stable-4.13' of git://git.infradead.org/users/pcmoore/a…
Browse files Browse the repository at this point in the history
…udit

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.
  • Loading branch information
torvalds committed Jul 20, 2017
2 parents ae1c908 + b0659ae commit f58781c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f58781c

Please sign in to comment.