Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2022 03:28:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264057] mad: Fix a possible memory leak
Message-ID:  <bug-264057-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264057

            Bug ID: 264057
           Summary: mad: Fix a possible memory leak
           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 234011
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234011&action=
=3Dedit
a possible patch

If ib_dma_mapping_error, it will jump out of the loop, leaving
mad_priv allocated by alloc_mad_private not freed. It will cause
a memory leak. Fix it with kfree.

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



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