diff options
author | Jan Kara <jack@suse.cz> | 2016-12-21 11:50:39 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2017-04-10 17:37:35 +0200 |
commit | e7253760587e8523fe1e8ede092a620f1403f2e8 (patch) | |
tree | 7bcf5c7a849efedfb497da81e044bbe958d88454 /kernel | |
parent | 08991e83b7286635167bab40927665a90fb00d81 (diff) | |
download | linux-e7253760587e8523fe1e8ede092a620f1403f2e8.tar.bz2 |
inotify: Do not drop mark reference under idr_lock
Dropping mark reference can result in mark being freed. Although it
should not happen in inotify_remove_from_idr() since caller should hold
another reference, just don't risk lock up just after WARN_ON
unnecessarily. Also fold do_inotify_remove_from_idr() into the single
callsite as that function really is just two lines of real code.
Reviewed-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions