Re: [PATCH -next] exportfs: fix 'passing zero to ERR_PTR()' warning

From: Al Viro
Date: Sun Nov 18 2018 - 23:47:53 EST


On Mon, Nov 19, 2018 at 11:32:41AM +0800, YueHaibing wrote:
> Fix a static code checker warning:
> fs/exportfs/expfs.c:171 reconnect_one() warn: passing zero to 'ERR_PTR'
>
> The error path for lookup_one_len_unlocked failure
> should set err to PTR_ERR.
>
> Fixes: bbf7a8a3562f ("exportfs: move most of reconnect_path to helper function")
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.