]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx4_core: add sanity check when creating bitmap structure
authorDotan Barak <dotanb@dev.mellanox.co.il>
Thu, 12 Jul 2012 08:40:16 +0000 (11:40 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:38:11 +0000 (14:38 -0700)
commita6f7793000df068282d07ff732342dd2ea92f17c
tree7ca4317d163e9c50b397b0ff15a22b41ff7ed1ef
parent7adab1ffadb512d3e56e20873dbcc097dc4c803e
net/mlx4_core: add sanity check when creating bitmap structure

If a user tries to allocate bitmap structure with invalid values, this may
cause a kernel panic.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/net/ethernet/mellanox/mlx4/alloc.c