[PATCH 6/7] audit: remove extra audit_get_parent()
From: Richard Guy Briggs
Date: Thu Oct 02 2014 - 22:07:21 EST
There appears to be an extra parent reference taken. Remove it.
Signed-off-by: Richard Guy Briggs <rgb@xxxxxxxxxx>
---
kernel/audit_watch.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c
index c707afb..eb53bc7 100644
--- a/kernel/audit_watch.c
+++ b/kernel/audit_watch.c
@@ -462,7 +462,6 @@ void audit_remove_watch_rule(struct audit_krule *krule)
audit_remove_watch(watch);
if (list_empty(&parent->watches)) {
- audit_get_parent(parent);
fsnotify_destroy_mark(&parent->mark, audit_watch_group);
audit_put_parent(parent);
}
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/