IB/rxe: Fix kmem_cache leak
authorYonatan Cohen <yonatanc@mellanox.com>
Wed, 7 Sep 2016 11:04:07 +0000 (14:04 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 16 Sep 2016 18:14:08 +0000 (14:14 -0400)
commitc1cc72cb6ff95cbe02ed747866576dccab4a5911
tree760b7443960d74c7abd8f96758898be23754892e
parent3050b99850247695cb07a5c15265afcc08bcf400
IB/rxe: Fix kmem_cache leak

Decrement qp reference when handling error path
in completer to prevent kmem_cache leak.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_comp.c