Files
linux/drivers
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
..
2013-02-08 14:22:05 -05:00
2013-01-30 11:38:25 +01:00
2013-02-28 05:38:39 -08:00
2012-12-18 15:19:06 +10:30
2013-01-15 10:45:26 -07:00
2013-02-28 05:38:39 -08:00
2012-11-16 08:14:18 -08:00
2012-11-16 08:14:18 -08:00