diff options
| author | Haiyang Zhang <[email protected]> | 2016-03-23 16:43:10 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-03-23 18:38:55 +0000 |
| commit | 9efc2f7dcd06e04d7b6a3032ae65bfd628b1aebe (patch) | |
| tree | b1177296ef91d34aadc8307915de09240e76eaf9 /net/switchdev/switchdev.c | |
| parent | hv_netvsc: Fix accessing freed memory in netvsc_change_mtu() (diff) | |
| download | kernel-9efc2f7dcd06e04d7b6a3032ae65bfd628b1aebe.tar.gz kernel-9efc2f7dcd06e04d7b6a3032ae65bfd628b1aebe.zip | |
hv_netvsc: Fix the array sizes to be max supported channels
The VRSS_CHANNEL_MAX is the max number of channels supported by Hyper-V
hosts. We use it for the related array sizes instead of using NR_CPUS,
which may be set to several thousands.
This patch reduces possible memory allocation failures.
Signed-off-by: Haiyang Zhang <[email protected]>
Reviewed-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
