diff options
author | 2017-10-13 12:28:05 -0700 | |
---|---|---|
committer | 2017-10-14 18:42:55 -0700 | |
commit | 6b0cbe315868d613123cf387052ccda5f09d49ea (patch) | |
tree | 397df71338800881d1bf18ac5add6bfa19fe8fba /net/lapb/lapb_timer.c | |
parent | hv_netvsc: Rename tx_send_table to tx_table (diff) | |
download | wireguard-linux-6b0cbe315868d613123cf387052ccda5f09d49ea.tar.xz wireguard-linux-6b0cbe315868d613123cf387052ccda5f09d49ea.zip |
hv_netvsc: Add initialization of tx_table in netvsc_device_add()
tx_table is part of the private data of kernel net_device. It is only
zero-ed out when allocating net_device.
We may recreate netvsc_device w/o recreating net_device, so the private
netdev data, including tx_table, are not zeroed. It may contain channel
numbers for the older netvsc_device.
This patch adds initialization of tx_table each time we recreate
netvsc_device.
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions