aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2022-06-21 09:25:44 +0400
committerJason Gunthorpe <[email protected]>2022-06-24 16:41:03 -0300
commit2990f223ffa7bb25422956b9f79f9176a5b38346 (patch)
treedd5408fe289a66d3806a1545019e81b0f7d2acb8 /drivers/usb/cdns3/cdns3-trace.c
parent118f767413ada4eef7825fbd4af7c0866f883441 (diff)
RDMA/cm: Fix memory leak in ib_cm_insert_listen
cm_alloc_id_priv() allocates resource for the cm_id_priv. When cm_init_listen() fails it doesn't free it, leading to memory leak. Add the missing error unwind. Fixes: 98f67156a80f ("RDMA/cm: Simplify establishing a listen cm_id") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miaoqian Lin <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions