summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2018-06-08 09:53:49 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-21 10:52:52 +0200
commit3d5eb8428488648c544e82e6b8b9fd391b107ed9 (patch)
tree6a7b283d06268a45a9118922fc38a5c269915fe5 /tools/perf/scripts/python/bin
parente164d5f7b274f422f9cd4fa6a6638ea07c4969f1 (diff)
xfs: don't call xfs_da_shrink_inode with NULL bp
[ Upstream commit bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a ] xfs_attr3_leaf_create may have errored out before instantiating a buffer, for example if the blkno is out of range. In that case there is no work to do to remove it, and in fact xfs_da_shrink_inode will lead to an oops if we try. This also seems to fix a flaw where the original error from xfs_attr3_leaf_create gets overwritten in the cleanup case, and it removes a pointless assignment to bp which isn't used after this. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199969 Reported-by: Xu, Wen <wen.xu@gatech.edu> Tested-by: Xu, Wen <wen.xu@gatech.edu> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions