diff options
| author | Yu Kuai <[email protected]> | 2020-11-18 17:21:26 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2020-11-18 17:23:51 +0000 |
| commit | 595189c25c28a55523354336bf24453242c81c15 (patch) | |
| tree | 0e78e103dbad5f448b4c99f416c50da1bb0a6af7 /scripts/gcc-plugins/gcc-common.h | |
| parent | xfs: ensure inobt record walks always make forward progress (diff) | |
| download | kernel-595189c25c28a55523354336bf24453242c81c15.tar.gz kernel-595189c25c28a55523354336bf24453242c81c15.zip | |
xfs: return corresponding errcode if xfs_initialize_perag() fail
In xfs_initialize_perag(), if kmem_zalloc(), xfs_buf_hash_init(), or
radix_tree_preload() failed, the returned value 'error' is not set
accordingly.
Reported-as-fixing: 8b26c5825e02 ("xfs: handle ENOMEM correctly during initialisation of perag structures")
Fixes: 9b2471797942 ("xfs: cache unlinked pointers in an rhashtable")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Yu Kuai <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions
