Re: [PATCH net-next] hv_netvsc: fix bogus ifalias on network device

2018-05-24 Thread David Miller
From: Stephen Hemminger Date: Wed, 23 May 2018 18:02:00 -0700 > 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 if

[PATCH net-next] hv_netvsc: fix bogus ifalias on network device

2018-05-23 Thread Stephen Hemminger
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.