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: 25766271 ("r8152: Refresh MAC address during USBDEVFS_RESET") Signed-off-by: NCrag.Wang <crag.wang@dell.com> Reviewed-by: NJakub Kicinski <jakub.kicinski@netronome.com> Reviewed-By: NMario Limonciello <mario.limonciello@dell.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录