aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorBob Pearson <[email protected]>2021-07-05 16:41:54 +0000
committerJason Gunthorpe <[email protected]>2021-07-15 17:44:12 +0000
commitb18c7da63fcb46e2f9a093cc18d7c219e13a887c (patch)
treea5c6f22a30c4b51ceead98508031d9850d0be343 /net/unix/af_unix.c
parentRDMA/irdma: Change the returned type to void (diff)
downloadkernel-b18c7da63fcb46e2f9a093cc18d7c219e13a887c.tar.gz
kernel-b18c7da63fcb46e2f9a093cc18d7c219e13a887c.zip
RDMA/rxe: Fix memory leak in error path code
In rxe_mr_init_user() 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") Link: https://lore.kernel.org/r/[email protected] Reported by: Haakon Bugge <[email protected]> Signed-off-by: Bob Pearson <[email protected]> Reviewed-by: Zhu Yanjun <[email protected]> Reviewed-by: HÃ¥kon Bugge <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions