[Bug 264056] mlx4: Fix a resource leak in mlx4_opreq_action()

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 18 May 2022 03:04:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264056

            Bug ID: 264056
           Summary: mlx4: Fix a resource leak in mlx4_opreq_action()
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: ruc_gongyuanjun@163.com

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

mailbox allocate by mlx4_alloc_cmd_mailbox(dev) should be released
before return.

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