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)
commit30e514a71753ac3fd0ddea1411d5602ccbe14acf
tree2c1c36a3eca88087efaeee18c8321051dd9e4d8e
parent674925edb466b027d7c61993ebe3250fb8989ee0
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