Re: [PATCH net] hinic: fix passing non negative value to ERR_PTR

2020-06-30 Thread luobin (L)
On 2020/7/1 0:20, Jakub Kicinski wrote: > On Tue, 30 Jun 2020 14:35:54 +0800 Luo bin wrote: >> 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

Re: [PATCH net] hinic: fix passing non negative value to ERR_PTR

2020-06-30 Thread Jakub Kicinski
On Tue, 30 Jun 2020 14:35:54 +0800 Luo bin wrote: > 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 ("net-next/hinic: add sriov feature support")

[PATCH net] hinic: fix passing non negative value to ERR_PTR

2020-06-29 Thread Luo bin
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 ("net-next/hinic: add sriov feature support") Signed-off-by: Luo bin --- drivers/net/ethernet/huawei/hin