]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit092bb3ecad1d7114fb0cd8873298baa6c717f52f
treeba27ae3125487e31260e3d63f44b332651e7ccbc
parentd1abed5c36797e3e8c18d4202310edb4dff091c4
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: f4e57e776e4b ("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