summaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/mlx4_en.h
diff options
context:
space:
mode:
authorNicolas de Pesloüan <nicolas.2p.debian@free.fr>2010-07-14 18:24:54 -0700
committerDavid S. Miller <davem@davemloft.net>2010-07-14 18:24:54 -0700
commit79236680bde29913dc6bfaf9165973b74223d5f7 (patch)
treea34d509c3afa9596e02af63c54d407b4fd8266b1 /drivers/net/mlx4/mlx4_en.h
parent04d5821fa506551afbc072456fecee7b34b2977d (diff)
bonding: fix a buffer overflow in bonding_show_queue_id.
The test for buffer overflow ensures we have room for 6 more bytes. sprintf, called with %s:%d, slave->dev->name, slave->queue_id may yield far more than 6 bytes. The correct test is res > (PAGE_SIZE - IFNAMSIZ - 6) . Signed-off-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/mlx4_en.h')
0 files changed, 0 insertions, 0 deletions