r8152: sync sa_family with the media type of network device
authorCrag.Wang <crag.wang@dell.com>
Mon, 22 Apr 2019 05:03:43 +0000 (13:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Apr 2019 05:14:43 +0000 (22:14 -0700)
commita6cbcb7793596eb8b8dd9564e534c5cfc0a4fdbc
treeba27ae3125487e31260e3d63f44b332651e7ccbc
parent6f97955fd2741ac4d73c1ba328870253ded680c8
r8152: sync sa_family with the media type of network device

Without this patch the socket address family sporadically gets wrong
value ends up the dev_set_mac_address() fails to set the desired MAC
address.

Fixes: 25766271e42f ("r8152: Refresh MAC address during USBDEVFS_RESET")
Signed-off-by: Crag.Wang <crag.wang@dell.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-By: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c