Skip to content

Commit

Permalink
[PATCH] IB/mthca: Fix memory leak on error path
Browse files Browse the repository at this point in the history
Free page_list buffer on error path of mthca_reg_phys_mr().

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Roland Dreier authored and Linus Torvalds committed Jun 27, 2005

Unverified

No user is associated with the committer email.
1 parent d56d6f9 commit 761f9eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/mthca/mthca_provider.c
Original file line number Diff line number Diff line change
@@ -559,6 +559,7 @@ static struct ib_mr *mthca_reg_phys_mr(struct ib_pd *pd,
convert_access(acc), mr);

if (err) {
kfree(page_list);
kfree(mr);
return ERR_PTR(err);
}

0 comments on commit 761f9eb

Please sign in to comment.