summaryrefslogtreecommitdiff
path: root/fs/aufs/hfsnotify.c
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-06-10 05:30:17 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-06-10 05:30:17 -0300
commitd635711daa98be86d4c7fd01499c34f566b54ccb (patch)
treeaa5cc3760a27c3d57146498cb82fa549547de06c /fs/aufs/hfsnotify.c
parentc91265cd0efb83778f015b4d4b1129bd2cfd075e (diff)
Linux-libre 4.6.2-gnu
Diffstat (limited to 'fs/aufs/hfsnotify.c')
-rw-r--r--fs/aufs/hfsnotify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/aufs/hfsnotify.c b/fs/aufs/hfsnotify.c
index c0a1a63a9..07b4ecc53 100644
--- a/fs/aufs/hfsnotify.c
+++ b/fs/aufs/hfsnotify.c
@@ -50,8 +50,6 @@ static int au_hfsn_alloc(struct au_hinode *hinode)
lockdep_off();
err = fsnotify_add_mark(mark, br->br_hfsn->hfsn_group, hinode->hi_inode,
/*mnt*/NULL, /*allow_dups*/1);
- /* even if err */
- fsnotify_put_mark(mark);
lockdep_on();
return err;
@@ -73,6 +71,7 @@ static int au_hfsn_free(struct au_hinode *hinode, struct au_hnotify *hn)
spin_unlock(&mark->lock);
lockdep_off();
fsnotify_destroy_mark(mark, group);
+ fsnotify_put_mark(mark);
fsnotify_put_group(group);
lockdep_on();