linux/drivers/infiniband/ulp
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
..
ipoib IB/ipoib: Fix memory leak in create child syscall 2017-09-15 18:30:11 +01:00
iser IB/iser: Fix wrong calculation of protection buffer length 2015-05-06 11:33:08 +01:00
isert iser-target: remove command with state ISTATE_REMOVE 2015-10-09 14:41:06 +01:00
srp IB/srp: Fix infinite loop when FMR sg[0].offset != 0 2017-02-23 03:54:10 +00:00
srpt IB/srpt: Simplify srpt_handle_tsk_mgmt() 2016-05-01 00:05:52 +02:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00