mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 14:14:01 +08:00
nfp: tls: fix error return code in nfp_net_tls_add()
Fix to return negative error code -EINVAL from the error handling
case instead of 0, as done elsewhere in this function.
Fixes: 1f35a56cf5
("nfp: tls: add/delete TLS TX connections")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
107d3ce601
commit
31d166642c
@ -344,6 +344,7 @@ nfp_net_tls_add(struct net_device *netdev, struct sock *sk,
|
||||
|
||||
if (!reply->handle[0] && !reply->handle[1]) {
|
||||
nn_dp_warn(&nn->dp, "FW returned NULL handle\n");
|
||||
err = -EINVAL;
|
||||
goto err_fw_remove;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user