]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_en: fix allocation of device tx_cq
authorKleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Fri, 22 Feb 2013 14:58:02 +0000 (14:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Feb 2013 18:51:54 +0000 (13:51 -0500)
commit1d648e6f825ee554a7203d75d5d4efe3b0dc1d4a
tree24a0628f9eef8870437491201f8a66aca0655e63
parent42db8ed93f47615e6fa47900dd03c2ad7686a32e
mlx4_en: fix allocation of device tx_cq

The memory to hold the network device tx_cq is not being allocated with
the correct size in mlx4_en_init_netdev(). It should use MAX_TX_RINGS
instead of MAX_RX_RINGS. This can cause problems if the number of tx
rings being used is greater than MAX_RX_RINGS.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Acked-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c