cxgb4: free appropriate pointer in error case
PATCH v2 1/1 cxgb4: free appropriate pointer in error case
error unmap case wrongly frees only the cqid2ptr for qp/mmid2ptr. This patch frees the appropriate pointer.
Fixes 9b2d3af5735e ("Query device to get the max supported stags, qps, and cqs")
Signed-off-by Potnuri Bharat Teja <[email protected]>
---
v0 -> v1:
- add missing description
--- providers/cxgb4/dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
providers/cxgb4/dev.c +2 -2
@@ -203,9 +203,9 @@ err_free:if (rhp->cqid2ptr)free (rhp->cqid2ptr);if (rhp->qpid2ptr) -free (rhp->cqid2ptr); +free (rhp->qpid2ptr);if (rhp->mmid2ptr) -free (rhp->cqid2ptr); +free (rhp->mmid2ptr);verbs_uninit_context (&context->ibv_ctx);free (context);return NULL ;
Signature · 1 line
2.3.9
Leon Romanovsky
AppliedQuoted 12 lines · Potnuri Bharat Teja
error unmap case wrongly frees only the cqid2ptr for qp/mmid2ptr. This patch frees the appropriate pointer.
Fixes 9b2d3af5735e ("Query device to get the max supported stags, qps, and cqs")Signed-off-by Potnuri Bharat Teja <[email protected]>---
v0 -> v1:
- add missing description--- providers/cxgb4/dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks, applied.