From ce9c7d10ca8645904c7273af406412496f4cd7de Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Tue, 13 Jan 2009 17:32:40 -0500 Subject: [PATCH] --- yaml --- r: 142023 b: refs/heads/master c: 318b6d3d7ddbcad3d6867e630711b8a705d873d7 h: refs/heads/master i: 142021: f5464c57ab0c2fe160f9928f6837a46d9fb5edd4 142019: a254f9522b24b3fe13085923cf41400ea1005fa2 142015: ecf7718ece657a0e08e7d6789d31b8fe0df2375c v: v3 --- [refs] | 2 +- trunk/kernel/audit_tree.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f0402f019140..9b0655b18d71 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6d208da89aabee8502debe842832ca0ab298d16d +refs/heads/master: 318b6d3d7ddbcad3d6867e630711b8a705d873d7 diff --git a/trunk/kernel/audit_tree.c b/trunk/kernel/audit_tree.c index 8ad9545b8db9..917ab9525568 100644 --- a/trunk/kernel/audit_tree.c +++ b/trunk/kernel/audit_tree.c @@ -385,6 +385,7 @@ static int tag_chunk(struct inode *inode, struct audit_tree *tree) mutex_lock(&inode->inotify_mutex); if (inotify_clone_watch(&old->watch, &chunk->watch) < 0) { mutex_unlock(&inode->inotify_mutex); + put_inotify_watch(&old->watch); free_chunk(chunk); return -ENOSPC; } @@ -394,6 +395,7 @@ static int tag_chunk(struct inode *inode, struct audit_tree *tree) chunk->dead = 1; inotify_evict_watch(&chunk->watch); mutex_unlock(&inode->inotify_mutex); + put_inotify_watch(&old->watch); put_inotify_watch(&chunk->watch); return 0; }