linux_dsm_epyc7002/drivers/net/hyperv
Stephen Hemminger d97cde6ab5 hv_netvsc: fix bogus ifalias on network device
If the guest network adapter is not configured with DeviceNaming
enabled on the host, then the query for friendly name will return
success but with a zero length name. Which then leads to a garbage value
(stack contents) for ifalias.

Fix is simple, just don't set name if  host doesn't return it.

Fixes: 0fe554a46a ("hv_netvsc: propogate Hyper-V friendly name into interface alias")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-05-24 23:06:33 -04:00
..
hyperv_net.h hv_netvsc: typo in NDIS RSS parameters structure 2018-05-10 17:23:20 -04:00
Kconfig hv_netvsc: select needed ucs2_string routine 2018-04-22 21:07:03 -04:00
Makefile hv_netvsc: add trace points 2018-03-17 20:10:27 -04:00
netvsc_drv.c hv_netvsc: Add handlers for ethtool get/set msg level 2018-05-23 14:55:00 -04:00
netvsc_trace.c hv_netvsc: add trace points 2018-03-17 20:10:27 -04:00
netvsc_trace.h hv_netvsc: add trace points 2018-03-17 20:10:27 -04:00
netvsc.c hv_netvsc: simplify receive side calling arguments 2018-04-27 14:46:26 -04:00
rndis_filter.c hv_netvsc: fix bogus ifalias on network device 2018-05-24 23:06:33 -04:00