]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
be2net: dynamically allocate adapter->vf_cfg
authorAjit Khaparde <ajit.khaparde@emulex.com>
Wed, 6 Apr 2011 18:08:30 +0000 (18:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Apr 2011 22:04:45 +0000 (15:04 -0700)
commit48f5a19168c228e6533401c563d9fcbc152bc33f
tree5d9968910d64671a5719f198528419c5daf94299
parent81be8f0ab47db1171dac0eb8b062291603b57dd4
be2net: dynamically allocate adapter->vf_cfg

Instead of a fixed sized array for vf_cfg, allocate the size dynamically
depending on number of VFs the device supports.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be.h
drivers/net/benet/be_main.c