diff options
author | Paul Moore <paul@paul-moore.com> | 2020-04-20 10:09:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-07 12:05:41 +0200 |
commit | 61ec5d8de5786a55c4889d746bc94651fc399ef0 (patch) | |
tree | c1562ca218b65be6d68841f10d682b6a16042604 /arch/arm64/mm | |
parent | 03691e3b50dc97ddd7f39a98a376ac7651c65605 (diff) | |
download | linux-stable-61ec5d8de5786a55c4889d746bc94651fc399ef0.tar.gz linux-stable-61ec5d8de5786a55c4889d746bc94651fc399ef0.tar.bz2 linux-stable-61ec5d8de5786a55c4889d746bc94651fc399ef0.zip |
audit: fix a net reference leak in audit_send_reply()
commit a48b284b403a4a073d8beb72d2bb33e54df67fb6 upstream.
If audit_send_reply() fails when trying to create a new thread to
send the reply it also fails to cleanup properly, leaking a reference
to a net structure. This patch fixes the error path and makes a
handful of other cleanups that came up while fixing the code.
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 'arch/arm64/mm')
0 files changed, 0 insertions, 0 deletions