mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
audit: fix a net reference leak in audit_list_rules_send()
[ Upstream commit 3054d06719079388a543de6adb812638675ad8f5 ] 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: [email protected] Reviewed-by: Richard Guy Briggs <[email protected]> Signed-off-by: Paul Moore <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
5b737a0ae1
commit
51d2957b21
3 changed files with 9 additions and 11 deletions
|
|
@ -879,7 +879,7 @@ main_queue:
|
|||
return 0;
|
||||
}
|
||||
|
||||
int audit_send_list(void *_dest)
|
||||
int audit_send_list_thread(void *_dest)
|
||||
{
|
||||
struct audit_netlink_list *dest = _dest;
|
||||
struct sk_buff *skb;
|
||||
|
|
|
|||
Loading…
Reference in a new issue