Thread (4 messages) 4 messages, 4 authors, 2021-07-15

Re: [PATCH for-next v2] RDMA/rxe: Fix memory leak in error path code

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-07-15 17:56:59

On Mon, Jul 05, 2021 at 11:41:54AM -0500, Bob Pearson wrote:
In rxe_mr_init_user() in rxe_mr.c at the third error the driver fails to
free the memory at mr->map. This patch adds code to do that.
This error only occurs if page_address() fails to return a non zero address
which should never happen for 64 bit architectures.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Reported by: Haakon Bugge [off-list ref]
Signed-off-by: Bob Pearson <redacted>
Reviewed-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Reviewed-by: Håkon Bugge <redacted>
---
v2:
  Left out white space changes.
Applied to for-rc, thanks

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help