Skip to content

Commit b51e3bd

Browse files
RDS: IB: Avoid double reject on ACL failures
We end up sending double reject on ACL failures. Fix it. Orabug: 22347191 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]> Reviewed-by: Mukesh Kacker <[email protected]> Reviewed-by: Ajaykumar Hotchandani <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]>
1 parent 8935c8f commit b51e3bd

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
@@ -846,9 +846,7 @@ int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
846846

847847
acl_ret = rds_ib_match_acl(cm_id, dp->dp_saddr);
848848
if (acl_ret < 0) {
849-
int reject_reason = RDS_ACL_FAILURE;
850-
851-
rdma_reject(cm_id, &reject_reason, sizeof(int));
849+
err = RDS_ACL_FAILURE;
852850
rdsdebug("RDS: IB: passive: rds_ib_match_acl failed\n");
853851
goto out;
854852
}

0 commit comments

Comments
 (0)