lkml.org 
[lkml]   [2019]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] IB/mlx4: Fix memory leaks
    From
    Date
    On Sun, 2019-08-18 at 15:23 -0500, Wenwen Wang wrote:
    > In mlx4_ib_alloc_pv_bufs(), 'tun_qp->tx_ring' is allocated through
    > kcalloc(). However, it is not always deallocated in the following
    > execution
    > if an error occurs, leading to memory leaks. To fix this issue, free
    > 'tun_qp->tx_ring' whenever an error occurs.
    >
    > Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
    > ---

    Thanks, applied to for-rc.

    --
    Doug Ledford <dledford@redhat.com>
    GPG KeyID: B826A3330E572FDD
    Fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2019-08-20 19:18    [W:2.787 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site