]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Fix memory leaks for child interfaces priv
authorAlex Vesker <valex@mellanox.com>
Wed, 14 Jun 2017 06:59:05 +0000 (09:59 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Jun 2017 19:16:23 +0000 (15:16 -0400)
commit7d582fb21dd96cd378666c5b55b89f4a02ace3ab
tree9014b103ba5ce826a98c2f2d43b99bad6f3b4b2f
parent893189293f714b1e87ebe7b7184bccf0635fa84a
IB/ipoib: Fix memory leaks for child interfaces priv

There is a need to free priv explicitly and not just to release
the device, child priv is freed explicitly on remove flow and this
patch also includes priv free on error flow in P_key creation
and also in add_port.

Fixes: 52a57478c4d6 ('IB/IPoIB: Support acceleration options callbacks')
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c