Commit 5a46d233 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan Committed by Trond Myklebust
Browse files

flexfiles/pNFS: fix NULL checks on result of ff_layout_choose_ds_for_read



Recent commit f06bedfa ("pNFS/flexfiles: don't attempt pnfs on fatal DS
errors") has changed the error return type of ff_layout_choose_ds_for_read() from
NULL to an error pointer. However, not all code paths have been updated
to match the change. Thus, some non-NULL checks will accept error pointers
as a valid return value.

Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Suggested-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Fixes: f06bedfa ("pNFS/flexfiles: don't attempt pnfs on fatal DS errors")
Signed-off-by: default avatarTigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent d3684397
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment