Re: [PATCH] RDMA/siw: Fix potential siw_mem refcnt leak in nr_add_node

From: Markus Elfring
Date: Wed Apr 15 2020 - 07:02:21 EST


> The issue happens in one error path of siw_fastreg_mr(). When "base_mr"
> equals to NULL but "mem" is not NULL, the function forgets to decrease
> the refcnt increased by siw_mem_id2obj() and causes a refcnt leak.

How do you think about to mention the terms âexception handlingâ
and âreference countingâ in the commit message?

Would you like to add the tag âFixesâ to the change description?

Regards,
Markus