diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2021-06-28 14:14:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-14 17:55:38 +0300 |
commit | f794c839dff19ae28265954f5ed1897301a210b9 (patch) | |
tree | 446aa4fc0716a55e3cb411b94ac203153f645f9a /fs/ntfs | |
parent | 3ae1c663bdeb4cb82c557478358527ddacd516d8 (diff) | |
download | linux-f794c839dff19ae28265954f5ed1897301a210b9.tar.xz |
gfs2: Fix error handling in init_statfs
commit 5d49d3508b3c67201bd3e1bf7f4ef049111b7051 upstream.
On an error path, init_statfs calls iput(pn) after pn has already been put.
Fix that by setting pn to NULL after the initial iput.
Fixes: 97fd734ba17e ("gfs2: lookup local statfs inodes prior to journal recovery")
Cc: stable@vger.kernel.org # v5.10+
Reported-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ntfs')
0 files changed, 0 insertions, 0 deletions