diff options
| author | Eric Sandeen <[email protected]> | 2018-06-08 16:53:49 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2018-06-08 17:07:52 +0000 |
| commit | bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a (patch) | |
| tree | f90fb947d2782328cc8ce412441b3fffa5b30d41 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | xfs: clean up MIN/MAX (diff) | |
| download | kernel-bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a.tar.gz kernel-bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a.zip | |
xfs: don't call xfs_da_shrink_inode with NULL bp
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 <[email protected]>
Tested-by: Xu, Wen <[email protected]>
Signed-off-by: Eric Sandeen <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
