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)
commit5114a04e6c73a0c6e74737e801b8a3b3d40c7e36
tree0f180afcd9dc0ff1373e0dd2cb8a26482e0d72d5
parente1395a321eab1a7833d82e952eb8255e0a1f03cb
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