diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-01-05 23:06:06 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-01-05 23:06:06 -0800 |
commit | 6989606a7224a2d5a925df22a49e4f7a0bfed0d6 (patch) | |
tree | 2fb686a4dea9a7f4beec97fde510f2840c8e06f9 /fs | |
parent | ed40875dd4b4c7b5c991db9e06c984180ab0b3ce (diff) | |
parent | be29d20f3f5db1f0b4e49a4f6eeedf840e2bf9b1 (diff) | |
download | talos-op-linux-6989606a7224a2d5a925df22a49e4f7a0bfed0d6.tar.gz talos-op-linux-6989606a7224a2d5a925df22a49e4f7a0bfed0d6.zip |
Merge branch 'stable-4.10' of git://git.infradead.org/users/pcmoore/audit
Pull audit fixes from Paul Moore:
"Two small fixes relating to audit's use of fsnotify.
The first patch plugs a leak and the second fixes some lock
shenanigans. The patches are small and I banged on this for an
afternoon with our testsuite and didn't see anything odd"
* 'stable-4.10' of git://git.infradead.org/users/pcmoore/audit:
audit: Fix sleep in atomic
fsnotify: Remove fsnotify_duplicate_mark()
Diffstat (limited to 'fs')
-rw-r--r-- | fs/notify/mark.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/notify/mark.c b/fs/notify/mark.c index d3fea0bd89e2..6043306e8e21 100644 --- a/fs/notify/mark.c +++ b/fs/notify/mark.c @@ -510,18 +510,6 @@ void fsnotify_detach_group_marks(struct fsnotify_group *group) } } -void fsnotify_duplicate_mark(struct fsnotify_mark *new, struct fsnotify_mark *old) -{ - assert_spin_locked(&old->lock); - new->inode = old->inode; - new->mnt = old->mnt; - if (old->group) - fsnotify_get_group(old->group); - new->group = old->group; - new->mask = old->mask; - new->free_mark = old->free_mark; -} - /* * Nothing fancy, just initialize lists and locks and counters. */ |