linux/drivers/net/mlx4
Eli Cohen 0926f91083 mlx4_en: Fix out of bounds array access
When searching for a free entry in either mlx4_register_vlan() or
mlx4_register_mac(), and there is no free entry, the loop terminates without
updating the local variable free thus causing out of array bounds access. Fix
this by adding a proper check outside the loop.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-25 12:14:11 -07:00
..
alloc.c mlx4: use bitmap library 2010-08-28 15:37:04 -07:00
catas.c drivers/net/mlx4: Use %pV, pr_<level>, printk_once 2010-07-15 19:05:17 -07:00
cmd.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
cq.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
en_cq.c
en_ethtool.c mlx4_en: Fixed Ethtool statistics report 2010-09-06 18:48:44 -07:00
en_main.c mlx4_en: UDP RSS support 2010-08-24 14:57:09 -07:00
en_netdev.c mlx4_en: Use netif_set_real_num_{rx, tx}_queues() 2010-09-27 22:09:54 -07:00
en_port.c mlx4_en: Added self diagnostics test implementation 2010-08-24 14:54:51 -07:00
en_port.h mlx4_en: Added self diagnostics test implementation 2010-08-24 14:54:51 -07:00
en_resources.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
en_rx.c mlx4_en: Consider napi_get_frags() failure. 2010-09-06 18:48:44 -07:00
en_selftest.c drivers/net: return operator cleanup 2010-09-26 18:34:29 -07:00
en_tx.c vlan: Don't check for vlan group before vlan_tx_tag_present. 2010-10-21 01:26:52 -07:00
eq.c mlx4_en: Added self diagnostics test implementation 2010-08-24 14:54:51 -07:00
fw.c mlx4_en: UDP RSS support 2010-08-24 14:57:09 -07:00
fw.h mlx4_en: UDP RSS support 2010-08-24 14:57:09 -07:00
icm.c mlx4: make functions local and remove dead code. 2010-10-24 14:55:47 -07:00
icm.h mlx4: make functions local and remove dead code. 2010-10-24 14:55:47 -07:00
intf.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
main.c mlx4_en: UDP RSS support 2010-08-24 14:57:09 -07:00
Makefile mlx4_en: Added self diagnostics test implementation 2010-08-24 14:54:51 -07:00
mcg.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
mlx4_en.h mlx4_en: Fixed Ethtool statistics report 2010-09-06 18:48:44 -07:00
mlx4.h drivers/net/mlx4: Use %pV, pr_<level>, printk_once 2010-07-15 19:05:17 -07:00
mr.c drivers/net: use __packed annotation 2010-06-03 03:18:23 -07:00
pd.c mlx4_core: Remove unnecessary includes of <linux/init.h> 2009-09-05 20:24:49 -07:00
port.c mlx4_en: Fix out of bounds array access 2010-10-25 12:14:11 -07:00
profile.c drivers/net: Convert unbounded kzalloc calls to kcalloc 2010-08-17 17:45:14 -07:00
qp.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
reset.c mlx4_core: Remove unnecessary includes of <linux/init.h> 2009-09-05 20:24:49 -07:00
sense.c mlx4_core: return a negative error value 2009-12-13 19:47:42 -08:00
srq.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00