Re: [PATCH] xfs: Fix error code in 'xfs_ioc_getbmap()'

2018-10-17 Thread Christoph Hellwig
On Wed, Oct 17, 2018 at 08:21:38AM +0200, Christophe JAILLET wrote: > 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 interfa

[PATCH] xfs: Fix error code in 'xfs_ioc_getbmap()'

2018-10-16 Thread Christophe JAILLET
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, bu