summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2020-04-21 09:10:56 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-07 12:05:41 +0200
commit249293bbad16e1f09228803d1a325f19b4ab269b (patch)
treeef01de1527cbcfe16d2c07738bc07c63704005a3 /scripts
parent61ec5d8de5786a55c4889d746bc94651fc399ef0 (diff)
downloadlinux-stable-249293bbad16e1f09228803d1a325f19b4ab269b.tar.gz
linux-stable-249293bbad16e1f09228803d1a325f19b4ab269b.tar.bz2
linux-stable-249293bbad16e1f09228803d1a325f19b4ab269b.zip
audit: fix a net reference leak in audit_list_rules_send()
commit 3054d06719079388a543de6adb812638675ad8f5 upstream. If audit_list_rules_send() fails when trying to create a new thread to send the rules it also fails to cleanup properly, leaking a reference to a net structure. This patch fixes the error patch and renames audit_send_list() to audit_send_list_thread() to better match its cousin, audit_send_reply_thread(). Reported-by: teroincn@gmail.com Reviewed-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com> Cc: <stable@vger.kernel.org> # 4.9.x Signed-off-by: Wen Yang <wenyang@linux.alibaba.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions