summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorDominique Martinet <dominique.martinet@cea.fr>2018-08-27 15:12:05 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-01 09:37:27 +0100
commit829567dd9196a32951c7e4de91d590e684ce3b00 (patch)
treec2af34da830cae63596b35240292d765162fb316 /security
parent9f9e2bd0bbcf787c90c28bda082b6287b5c5661e (diff)
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions