From: Luo bin
Date: Wed, 1 Jul 2020 11:16:33 +0800
> get_dev_cap and set_resources_state functions may return a positive
> value because of hardware failure, and the positive return value
> can not be passed to ERR_PTR directly.
>
> Fixes: 7dd29ee12865 ("hinic: add sriov feature support")
> Sign
get_dev_cap and set_resources_state functions may return a positive
value because of hardware failure, and the positive return value
can not be passed to ERR_PTR directly.
Fixes: 7dd29ee12865 ("hinic: add sriov feature support")
Signed-off-by: Luo bin
---
drivers/net/ethernet/huawei/hinic/hinic_