[Bug 264630] RDMA/cma: Set proper port number as index

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 12 Jun 2022 11:27:29 UTC

            Bug ID: 264630
           Summary: RDMA/cma: Set proper port number as index
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: xiaohuizhang@ruc.edu.cn

Created attachment 234636
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234636&action=edit
a possible patch

Conversion from IDR to XArray missed the fact that idr_alloc() returned
index as a return value, this index was saved in port variable and used as
query index later on. This caused to the following error.

You are receiving this mail because:
You are the assignee for the bug.