summaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3
diff options
context:
space:
mode:
authorMarian Postevca <posteuca@mutex.one>2022-06-03 17:34:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-10 11:12:53 +0200
commitb337af3a4d6147000b7ca6b3438bf5c820849b37 (patch)
tree4527f8888d812b43743909298500ee13be074190 /drivers/usb/cdns3
parentusb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe (diff)
downloadlinux-b337af3a4d6147000b7ca6b3438bf5c820849b37.tar.xz
linux-b337af3a4d6147000b7ca6b3438bf5c820849b37.zip
usb: gadget: u_ether: fix regression in setting fixed MAC address
In systemd systems setting a fixed MAC address through the "dev_addr" module argument fails systematically. When checking the MAC address after the interface is created it always has the same but different MAC address to the one supplied as argument. This is partially caused by systemd which by default will set an internally generated permanent MAC address for interfaces that are marked as having a randomly generated address. Commit 890d5b40908bfd1a ("usb: gadget: u_ether: fix race in setting MAC address in setup phase") didn't take into account the fact that the interface must be marked as having a set MAC address when it's set as module argument. Fixed by marking the interface with NET_ADDR_SET when the "dev_addr" module argument is supplied. Fixes: 890d5b40908bfd1a ("usb: gadget: u_ether: fix race in setting MAC address in setup phase") Cc: stable@vger.kernel.org Signed-off-by: Marian Postevca <posteuca@mutex.one> Link: https://lore.kernel.org/r/20220603153459.32722-1-posteuca@mutex.one Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3')
0 files changed, 0 insertions, 0 deletions