Files
linux/drivers/net
Kleber Sacilotto de Souza a64f554348 mlx4_en: fix allocation of CPU affinity reverse-map
[ Upstream commit 3770699675 ]

The mlx4_en driver allocates the number of objects for the CPU affinity
reverse-map based on the number of rx rings of the device. However,
mlx4_assign_eq() calls irq_cpu_rmap_add() as many times as IRQ's are
assigned to EQ's, which can be as large as mlx4_dev->caps.comp_pool. If
caps.comp_pool is larger than rx_ring_num we will eventually hit the
BUG_ON() in cpu_rmap_add().

Fix this problem by allocating space for the maximum number of CPU
affinity reverse-map objects we might want to add.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-28 05:38:41 -08:00
..
2012-12-03 11:16:10 -08:00
2012-07-24 13:54:16 -07:00
2012-08-03 20:32:31 -07:00
2012-11-28 11:39:22 -05:00
2012-12-15 17:14:38 -08:00
2012-03-27 22:45:26 -04:00
2012-10-02 14:37:31 -04:00
2013-01-17 16:40:35 -05:00
2012-10-01 18:39:45 -04:00
2013-01-03 01:58:13 -08:00