lkml.org 
[lkml]   [2005]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[git patch review 5/5] IB/mthca: fix memory user DB table leak
    From
    Date
    Free the memory allocated in mthca_init_user_db_tab() when releasing
    the db_tab in mthca_cleanup_user_db_tab().

    Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
    Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
    Signed-off-by: Roland Dreier <rolandd@cisco.com>

    ---

    drivers/infiniband/hw/mthca/mthca_memfree.c | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    52d0df153c987e4ad57d15f5df91848f65858e5d
    diff --git a/drivers/infiniband/hw/mthca/mthca_memfree.c b/drivers/infiniband/hw/mthca/mthca_memfree.c
    index d72fe95..5798ed0 100644
    --- a/drivers/infiniband/hw/mthca/mthca_memfree.c
    +++ b/drivers/infiniband/hw/mthca/mthca_memfree.c
    @@ -485,6 +485,8 @@ void mthca_cleanup_user_db_tab(struct mt
    put_page(db_tab->page[i].mem.page);
    }
    }
    +
    + kfree(db_tab);
    }

    int mthca_alloc_db(struct mthca_dev *dev, enum mthca_db_type type,
    --
    0.99.9l
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-12-09 22:56    [W:0.020 / U:59.168 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site