linux/fs/9p
Dominique Martinet f0126bcaee 9p: fix fid refcount leak in v9fs_vfs_get_link
commit e5690f2632 upstream.

we check for protocol version later than required, after a fid has
been obtained. Just move the version check earlier.

Link: https://lkml.kernel.org/r/20220612085330.1451496-3-asmadeus@codewreck.org
Fixes: 6636b6dcc3 ("9p: add refcount to p9_fid struct")
Cc: stable@vger.kernel.org
Reviewed-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Reviewed-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-29 09:03:19 +02:00
..
acl.c vfs: add rcu argument to ->get_acl() callback 2021-08-18 22:08:24 +02:00
acl.h vfs: add rcu argument to ->get_acl() callback 2021-08-18 22:08:24 +02:00
cache.c 9p: Fix a bunch of kerneldoc warnings shown up by W=1 2021-10-04 22:07:46 +01:00
cache.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 188 2019-05-30 11:29:21 -07:00
fid.c 9p: Fix refcounting during full path walks for fid lookups 2022-06-29 09:03:18 +02:00
fid.h 9p: apply review requests for fid refcounting 2020-11-19 17:21:34 +01:00
Kconfig 9p: Fix Kconfig indentation 2020-03-27 09:29:56 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
v9fs_vfs.h fs: make helpers idmap mount aware 2021-01-24 14:27:20 +01:00
v9fs.c 9p: Fix a bunch of kerneldoc warnings shown up by W=1 2021-10-04 22:07:46 +01:00
v9fs.h fs: make helpers idmap mount aware 2021-01-24 14:27:20 +01:00
vfs_addr.c 9p: Fix a bunch of kerneldoc warnings shown up by W=1 2021-10-04 22:07:46 +01:00
vfs_dentry.c 9p: add refcount to p9_fid struct 2020-11-19 17:20:39 +01:00
vfs_dir.c 9p: add refcount to p9_fid struct 2020-11-19 17:20:39 +01:00
vfs_file.c 9p: Fix a bunch of kerneldoc warnings shown up by W=1 2021-10-04 22:07:46 +01:00
vfs_inode_dotl.c 9p: fix fid refcount leak in v9fs_vfs_atomic_open_dotl 2022-06-29 09:03:18 +02:00
vfs_inode.c 9p: fix fid refcount leak in v9fs_vfs_get_link 2022-06-29 09:03:19 +02:00
vfs_super.c 9p: add refcount to p9_fid struct 2020-11-19 17:20:39 +01:00
xattr.c acl: handle idmapped mounts 2021-01-24 14:27:17 +01:00
xattr.h 9p: xattr simplifications 2015-11-13 20:34:33 -05:00