summaryrefslogtreecommitdiffstats
path: root/kernel/audit_watch.c
diff options
context:
space:
mode:
authorLino Sanfilippo <LinoSanfilippo@gmx.de>2011-06-14 11:29:51 -0400
committerEric Paris <eparis@redhat.com>2012-12-11 13:44:36 -0500
commite2a29943e9a2ee2aa737a77f550f46ba72269db4 (patch)
treecf0275eeed130433df241f115cbd2f9ebea96e7f /kernel/audit_watch.c
parent986ab09807ca9454c3f54aae4db7e1bb00daeed3 (diff)
fsnotify: pass group to fsnotify_destroy_mark()
In fsnotify_destroy_mark() dont get the group from the passed mark anymore, but pass the group itself as an additional parameter to the function. Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/audit_watch.c')
-rw-r--r--kernel/audit_watch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c
index 3823281401b5..a66affc1c12c 100644
--- a/kernel/audit_watch.c
+++ b/kernel/audit_watch.c
@@ -349,7 +349,7 @@ static void audit_remove_parent_watches(struct audit_parent *parent)
349 } 349 }
350 mutex_unlock(&audit_filter_mutex); 350 mutex_unlock(&audit_filter_mutex);
351 351
352 fsnotify_destroy_mark(&parent->mark); 352 fsnotify_destroy_mark(&parent->mark, audit_watch_group);
353} 353}
354 354
355/* Get path information necessary for adding watches. */ 355/* Get path information necessary for adding watches. */
@@ -456,7 +456,7 @@ void audit_remove_watch_rule(struct audit_krule *krule)
456 456
457 if (list_empty(&parent->watches)) { 457 if (list_empty(&parent->watches)) {
458 audit_get_parent(parent); 458 audit_get_parent(parent);
459 fsnotify_destroy_mark(&parent->mark); 459 fsnotify_destroy_mark(&parent->mark, audit_watch_group);
460 audit_put_parent(parent); 460 audit_put_parent(parent);
461 } 461 }
462 } 462 }