linux/drivers/infiniband
Feras Daoud ae5212ab18 IB/ipoib: Fix memory leak in create child syscall
commit 4542d66bb2 upstream.

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>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-09-15 18:30:11 +01:00
..
core IB/core: For multicast functions, verify that LIDs are multicast LIDs 2017-08-26 02:14:41 +01:00
hw IB/mlx4: Fix ib device initialization error flow 2017-08-26 02:14:37 +01:00
ulp IB/ipoib: Fix memory leak in create child syscall 2017-09-15 18:30:11 +01:00
Kconfig Merge branch 'ip-roce' into for-next 2014-01-22 23:24:21 -08:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00