android_kernel_oneplus_msm8998/fs/9p
Dominique Martinet ebd55db37f v9fs_dir_readdir: fix double-free on p9stat_read error
commit 81c99089bce693b94b775b6eb888115d2d540086 upstream.

p9stat_read will call p9stat_free on error, we should only free the
struct content on success.

There also is no need to "p9stat_init" st as the read function will
zero the whole struct for us anyway, so clean up the code a bit while
we are here.

Link: http://lkml.kernel.org/r/1535410108-20650-1-git-send-email-asmadeus@codewreck.org
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Reported-by: syzbot+d4252148d198410b864f@syzkaller.appspotmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-01 09:46:33 +01:00
..
acl.c 9p: fix a potential acl leak 2017-05-14 13:32:54 +02:00
acl.h
cache.c
cache.h fs: 9p: cache.h: Add #define of include guard 2015-11-11 02:19:50 -05:00
fid.c
fid.h
Kconfig
Makefile 9p: xattr simplifications 2015-11-13 20:34:33 -05:00
v9fs.c 9p: remove unused option Opt_trans 2015-08-23 14:21:16 -05:00
v9fs.h 9p: don't bother with __getname() in ->follow_link() 2015-05-10 22:18:19 -04:00
v9fs_vfs.h
vfs_addr.c
vfs_dentry.c
vfs_dir.c v9fs_dir_readdir: fix double-free on p9stat_read error 2018-12-01 09:46:33 +01:00
vfs_file.c 9p locks: fix glock.client_id leak in do_lock 2018-11-21 09:27:39 +01:00
vfs_inode.c fs/9p: Compare qid.path in v9fs_test_inode 2017-11-30 08:37:22 +00:00
vfs_inode_dotl.c fs/9p: Compare qid.path in v9fs_test_inode 2017-11-30 08:37:22 +00:00
vfs_super.c v9fs: fix error handling in v9fs_session_init() 2015-06-08 09:05:06 -06:00
xattr.c fs/9p/xattr.c: catch the error of p9_client_clunk when setting xattr failed 2018-09-09 20:04:33 +02:00
xattr.h 9p: xattr simplifications 2015-11-13 20:34:33 -05:00