Linux-audit Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH git] fix oops in fs audit patch
@ 2006-06-01 14:50 Amy Griffis
  0 siblings, 0 replies; only message in thread
From: Amy Griffis @ 2006-06-01 14:50 UTC (permalink / raw)
  To: linux-audit

Fix bad list management in audit_inotify_unregister().

Al, please fold in with latest filesystem auditing patch
46c438b705c31284f31c64a0d18bf3bd6c62cde3.

Signed-off-by: Amy Griffis <amy.griffis@hp.com>

diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index f993842..7609694 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -822,9 +822,10 @@ static inline void audit_remove_parent_w
  * Generates an IN_IGNORED event. */
 static void audit_inotify_unregister(struct list_head *in_list)
 {
-	struct audit_parent *p;
+	struct audit_parent *p, *n;
 
-	list_for_each_entry(p, in_list, ilist) {
+	list_for_each_entry_safe(p, n, in_list, ilist) {
+		list_del(&p->ilist);
 		inotify_rm_watch(audit_ih, &p->wdata);
 		/* the put matching the get in audit_do_del_rule() */
 		put_inotify_watch(&p->wdata);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-01 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-01 14:50 [PATCH git] fix oops in fs audit patch Amy Griffis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox