diff options
author | Dominique Martinet <dominique.martinet@cea.fr> | 2018-08-27 08:12:05 +0200 |
---|---|---|
committer | Dominique Martinet <dominique.martinet@cea.fr> | 2018-08-29 06:39:57 +0200 |
commit | 81c99089bce693b94b775b6eb888115d2d540086 (patch) | |
tree | 2ffc0b75de3cfdc02778b1a0b45c23b6cdef5496 /net/9p/protocol.c | |
parent | 9p/xen: fix check for xenbus_read error in front_probe (diff) | |
download | linux-81c99089bce693b94b775b6eb888115d2d540086.tar.xz linux-81c99089bce693b94b775b6eb888115d2d540086.zip |
v9fs_dir_readdir: fix double-free on p9stat_read error
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
Diffstat (limited to 'net/9p/protocol.c')
0 files changed, 0 insertions, 0 deletions