Messages in this thread Patch in this message |  | | | Subject | [PATCH 11/14] IB/mthca: Fix memory leak on error path | | Date | Thu, 23 Jun 2005 21:04:20 -0700 | | From | Roland Dreier <> |
| |
Free page_list buffer on error path of mthca_reg_phys_mr().
Signed-off-by: Roland Dreier <roland@topspin.com>
--- linux.git/drivers/infiniband/hw/mthca/mthca_provider.c | 1 + 1 files changed, 1 insertion(+)
--- linux.git.orig/drivers/infiniband/hw/mthca/mthca_provider.c 2005-06-23 13:03:06.413728929 -0700 +++ linux.git/drivers/infiniband/hw/mthca/mthca_provider.c 2005-06-23 13:03:07.987388350 -0700 @@ -559,6 +559,7 @@ static struct ib_mr *mthca_reg_phys_mr(s convert_access(acc), mr); if (err) { + kfree(page_list); kfree(mr); return ERR_PTR(err); } - 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/
|  |