]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qed: add error handling flow to TID deregistratin posting failure
authorRam Amrani <Ram.Amrani@cavium.com>
Sun, 30 Apr 2017 08:49:07 +0000 (11:49 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:32:01 +0000 (22:32 -0700)
Orabug: 26783820

If the posting of the ramrod for the purpose of TID deregistration
fails, abort the deregistration operation without using the FW's
return code.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Upstream commit 105361943d3036f00f70a6621983b98673839591 ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_roce.c

index ef2933620f02ab9e45b44606979bd1bbda1e9f84..19daac3e114680b0d5456fffa526a1eee4a8a218 100644 (file)
@@ -2465,6 +2465,8 @@ qed_rdma_register_tid(void *rdma_cxt,
        }
 
        rc = qed_spq_post(p_hwfn, p_ent, &fw_return_code);
+       if (rc)
+               return rc;
 
        if (fw_return_code != RDMA_RETURN_OK) {
                DP_NOTICE(p_hwfn, "fw_return_code = %d\n", fw_return_code);