]> git.karo-electronics.de Git - linux-beck.git/commit
qedr: Fix possible memory leak in qedr_create_qp()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 28 Oct 2016 16:33:47 +0000 (16:33 +0000)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Dec 2016 16:18:17 +0000 (11:18 -0500)
commit181d80151f9c6ff3c765c1bd2e4e200ada23c2f3
treef7143a7025ec0a67bb7d5cf856b2e8f39fb93e3a
parentea7ef2accdeaf825165cccd60b848765677bf1f2
qedr: Fix possible memory leak in qedr_create_qp()

'qp' is malloced in qedr_create_qp() and should be freed before leaving
from the error handling cases, otherwise it will cause memory leak.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qedr/verbs.c