IB/cma: Fix net_dev reference leak with failed requests
authorHaggai Eran <haggaie@mellanox.com>
Thu, 27 Aug 2015 12:55:15 +0000 (15:55 +0300)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:08:28 +0000 (18:08 -0400)
commitbe688195bd08b1c045f89d72c07c7e3ef6516f38
tree9e13485adf52569800c863b2b159bc12407adf95
parent73fec7fd04a2ad6c879c93881cba9a40d551b3fd
IB/cma: Fix net_dev reference leak with failed requests

When no matching listening ID is found for a given request, the net_dev
that was used to find the request isn't released.

Fixes: 0b3ca768fcb0 ("IB/cma: Use found net_dev for passive connections")
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c