]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: double free of dev_vfs
authorCarol L Soto <clsoto@linux.vnet.ibm.com>
Tue, 2 Jun 2015 21:07:23 +0000 (16:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jun 2015 03:12:58 +0000 (20:12 -0700)
commite888577b70bfb25abc17c58f02de55d109d43622
tree0f180afcd9dc0ff1373e0dd2cb8a26482e0d72d5
parente85834910fa030ab5d7fbbd75861c0269c870195
net/mlx4_core: double free of dev_vfs

If user loads mlx4_core with num_vfs greater than
supported then variable dev->dev_vfs is freed 2 times after unloading the
driver.

Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c