kernel-fxtec-pro1x/drivers/infiniband
Feras Daoud 4542d66bb2 IB/ipoib: Fix memory leak in create child syscall
The flow of creating a new child goes through ipoib_vlan_add
which allocates a new interface and checks the rtnl_lock.

If the lock is taken, restart_syscall will be called to restart
the system call again. In this case we are not releasing the
already allocated interface, causing a leak.

Fixes: 9baa0b0364 ("IB/ipoib: Add rtnl_link_ops support")
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-06-14 15:16:23 -04:00
..
core IB/addr: Fix setting source address in addr6_resolve() 2017-06-07 14:34:19 -04:00
hw IB/ipoib: Limit call to free rdma_netdev for capable devices 2017-06-14 15:16:23 -04:00
sw rxe: Fix a sleep-in-atomic bug in post_one_send 2017-06-14 13:02:01 -04:00
ulp IB/ipoib: Fix memory leak in create child syscall 2017-06-14 15:16:23 -04:00
Kconfig IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev 2017-04-20 12:01:38 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00