diff options
| author | Andreas Gruenbacher <[email protected]> | 2021-06-28 11:14:50 +0000 |
|---|---|---|
| committer | Andreas Gruenbacher <[email protected]> | 2021-06-28 12:30:00 +0000 |
| commit | 5d49d3508b3c67201bd3e1bf7f4ef049111b7051 (patch) | |
| tree | e42ddf6deaaff608671bfe778d2016e3e6dad8f9 /net/switchdev/switchdev.c | |
| parent | gfs2: Fix underflow in gfs2_page_mkwrite (diff) | |
| download | kernel-5d49d3508b3c67201bd3e1bf7f4ef049111b7051.tar.gz kernel-5d49d3508b3c67201bd3e1bf7f4ef049111b7051.zip | |
gfs2: Fix error handling in init_statfs
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: [email protected] # v5.10+
Reported-by: Jing Xiangfeng <[email protected]>
Signed-off-by: Andreas Gruenbacher <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
