]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Fail device init if num_vfs is negative
authorJack Morgenstein <jackm@dev.mellanox.com>
Tue, 25 Jun 2013 09:09:38 +0000 (12:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2013 23:29:39 +0000 (16:29 -0700)
commitee3750dd3f1f65a230ba92d2885e4f4cd0a20ad9
tree2c1c36a3eca88087efaeee18c8321051dd9e4d8e
parent26dac390cc5d16f3475e1f7fd712591e4b463516
net/mlx4_core: Fail device init if num_vfs is negative

Should not allow negative num_vfs

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c