exportfs: fix 'passing zero to ERR_PTR()' warning
authorYueHaibing <yuehaibing@huawei.com>
Mon, 19 Nov 2018 03:32:41 +0000 (11:32 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 19 Nov 2018 04:47:56 +0000 (23:47 -0500)
commit909e22e05353a783c526829427e9a8de122fba9c
tree40c9478aa149c9ad8d6fc151bf6f6ceba2edb0fb
parent53fffe29a9e664a999dd3787e4428da8c30533e0
exportfs: fix 'passing zero to ERR_PTR()' warning

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@huawei.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/exportfs/expfs.c