Skip to content

Commit 2869189

Browse files
SantoshShilimkarSomasundaram Krishnasamy
authored andcommitted
RDS: IB: Avoid double reject on ACL failures
We end up sending double reject on ACL failures. Fix it. Orabug: 22347191 Signed-off-by: Santosh Shilimkar <[email protected]> Reviewed-by: Mukesh Kacker <[email protected]> Reviewed-by: Ajaykumar Hotchandani <[email protected]> Tested-by: Michael Nowak <[email protected]> Tested-by: Rafael Alejandro Peralez <[email protected]> Tested-by: Liwen Huang <[email protected]> Tested-by: Hong Liu <[email protected]> Orabug: 27364391 (cherry picked from commit b51e3bd) cherry-pick-repo=linux-uek.git Signed-off-by: Gerd Rausch <[email protected]> Signed-off-by: Somasundaram Krishnasamy <[email protected]>
1 parent 04bae38 commit 2869189

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

net/rds/ib_cm.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -861,9 +861,7 @@ int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
861861

862862
acl_ret = rds_ib_match_acl(cm_id, dp->dp_saddr);
863863
if (acl_ret < 0) {
864-
int reject_reason = RDS_ACL_FAILURE;
865-
866-
rdma_reject(cm_id, &reject_reason, sizeof(int));
864+
err = RDS_ACL_FAILURE;
867865
rdsdebug("RDS: IB: passive: rds_ib_match_acl failed\n");
868866
goto out;
869867
}

0 commit comments

Comments
 (0)