mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue