diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2018-11-06 07:50:50 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-11-06 07:50:50 -0800 |
commit | 132bf6723749f7219c399831eeb286dbbb985429 (patch) | |
tree | e75c67056ddc474f967da3b0396586c970d58968 /MAINTAINERS | |
parent | 651022382c7f8da46cb4872a545ee1da6d097d2a (diff) | |
download | linux-132bf6723749f7219c399831eeb286dbbb985429.tar.bz2 |
xfs: Fix error code in 'xfs_ioc_getbmap()'
In this function, once 'buf' has been allocated, we unconditionally
return 0.
However, 'error' is set to some error codes in several error handling
paths.
Before commit 232b51948b99 ("xfs: simplify the xfs_getbmap interface")
this was not an issue because all error paths were returning directly,
but now that some cleanup at the end may be needed, we must propagate the
error code.
Fixes: 232b51948b99 ("xfs: simplify the xfs_getbmap interface")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions