linux/drivers/net/ethernet/mellanox/mlx4
Thadeu Lima de Souza Cascardo 7e2eb99cc6 mlx4: fix DMA mapping leak when allocation fails
mlx4_en_prepare_rx_desc does not correctly clean up after it finds an
allocation failure. It should unmap a page before calling put_page, but
it only calls the later.

This bug would prevent a device removal using hotplug after setting the
device MTU to 9000 and opening the network interface. After the fix, we
still see the allocation failure with MTU 9000, but we are able to
remove the device.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-02-06 14:42:28 -05:00
..
alloc.c
catas.c mlx4_core: adjust catas operation for SRIOV mode 2011-12-13 13:56:08 -05:00
cmd.c mlx4_core: fix memory leak at multi_func_cleanup 2012-02-06 12:10:11 -05:00
cq.c mlx4_core: removed function index from vf. 2012-01-22 15:08:43 -05:00
en_cq.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-01-02 18:56:49 -05:00
en_ethtool.c mlx4_en: eth statistics modification 2012-01-22 15:08:43 -05:00
en_main.c mlx4_en: set number of rx rings used by RSS using ethtool 2012-01-18 16:07:34 -05:00
en_netdev.c mlx4: allow device removal by fixing dma unmap size 2012-02-06 14:42:28 -05:00
en_port.c mlx4: Ethernet port management modifications 2011-12-13 13:56:07 -05:00
en_port.h mlx4: Ethernet port management modifications 2011-12-13 13:56:07 -05:00
en_resources.c net/mlx4: move RSS related definitions to be global 2011-11-27 17:17:03 -05:00
en_rx.c mlx4: fix DMA mapping leak when allocation fails 2012-02-06 14:42:28 -05:00
en_selftest.c mlx4_core: Add "native" argument to mlx4_cmd and its callers (where needed) 2011-12-13 13:56:05 -05:00
en_tx.c mlx4_en: Allow communication between functions on same host 2011-12-13 13:56:07 -05:00
eq.c mlx4_core: map async events to arbitrary slave eqs 2012-01-22 15:08:44 -05:00
fw.c mlx4_core: removed function index from vf. 2012-01-22 15:08:43 -05:00
fw.h mlx4_core: removed function index from vf. 2012-01-22 15:08:43 -05:00
icm.c mlx4_core: Add "native" argument to mlx4_cmd and its callers (where needed) 2011-12-13 13:56:05 -05:00
icm.h
intf.c mlx4_core: adjust catas operation for SRIOV mode 2011-12-13 13:56:08 -05:00
Kconfig
main.c mlx4_core: Fix mtt profile issue 2012-01-22 15:08:44 -05:00
Makefile mlx4_core: resource tracking for HCA resources used by guests 2011-12-13 13:56:07 -05:00
mcg.c mlx4_core: use correct port for steering 2012-02-06 12:10:11 -05:00
mlx4_en.h mlx4: allow device removal by fixing dma unmap size 2012-02-06 14:42:28 -05:00
mlx4.h mlx4_core: map async events to arbitrary slave eqs 2012-01-22 15:08:44 -05:00
mr.c mlx4_core: removed function index from vf. 2012-01-22 15:08:43 -05:00
pd.c mlx4_core: removed function index from vf. 2012-01-22 15:08:43 -05:00
port.c mlx4_en: eth statistics modification 2012-01-22 15:08:43 -05:00
profile.c mlx4_core: Fix mtt profile issue 2012-01-22 15:08:44 -05:00
qp.c mlx4_core: removed function index from vf. 2012-01-22 15:08:43 -05:00
reset.c
resource_tracker.c mlx4_core: map async events to arbitrary slave eqs 2012-01-22 15:08:44 -05:00
sense.c mlx4_core: Add "native" argument to mlx4_cmd and its callers (where needed) 2011-12-13 13:56:05 -05:00
srq.c mlx4_core: removed function index from vf. 2012-01-22 15:08:43 -05:00