mirror of
https://github.com/SCST-project/scst.git
synced 2026-10-22 14:12:33 +00:00
The IB/CM and RDMA/CM callers of srpt_cm_req_recv() provide exactly one connection identifier. Context setup branches on ib_cm_id, while error cleanup branches on rdma_cm_id. Smatch loses the relationship between the pointers and reports a possible NULL ib_cm_id dereference. Select the connection identifier by ib_cm_id in both places and document the caller contract. This preserves cleanup for both supported paths and makes the control flow consistent without suppressing diagnostics.