summaryrefslogtreecommitdiffstats
path: root/fs/qnx4/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2016-03-26 21:14:41 +0100
committerTheodore Ts'o <tytso@mit.edu>2016-03-26 21:14:41 +0100
commit9dd78d8c9a7bd4bc341f5864db32d4331b8eae4c (patch)
tree2f70946530b1e90ab39560b206827e460c1444d5 /fs/qnx4/inode.c
parentnfs: use file_dentry() (diff)
downloadlinux-9dd78d8c9a7bd4bc341f5864db32d4331b8eae4c.tar.xz
linux-9dd78d8c9a7bd4bc341f5864db32d4331b8eae4c.zip
ext4: use dget_parent() in ext4_file_open()
In f_op->open() lock on parent is not held, so there's no guarantee that parent dentry won't go away at any time. Even after this patch there's no guarantee that 'dir' will stay the parent of 'inode', but at least it won't be freed while being used. Fixes: ff978b09f973 ("ext4 crypto: move context consistency check to ext4_file_open()") Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: <stable@vger.kernel.org> # v4.5
Diffstat (limited to 'fs/qnx4/inode.c')
0 files changed, 0 insertions, 0 deletions