Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2022 11:55:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264631] RDMA/mlx5: Fix memory leak in error flow for subscribe event
Message-ID:  <bug-264631-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264631

            Bug ID: 264631
           Summary: RDMA/mlx5: Fix memory leak in error flow for subscribe
                    event
           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 234637
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234637&action=edit
a possible patch

In case the second xa_insert() fails, the obj_event is not released.  Fix 
the error unwind flow to free that memory to avoid a memory leak.

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264631-227>