linux-stable/fs/exportfs
YueHaibing 296f9d916c exportfs: fix 'passing zero to ERR_PTR()' warning
[ Upstream commit 909e22e053 ]

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: bbf7a8a356 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:02 +01:00
..
Makefile
expfs.c exportfs: fix 'passing zero to ERR_PTR()' warning 2020-01-27 14:50:02 +01:00