summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2024-10-17 09:18:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-11-01 01:58:29 +0100
commit7caee37c466a9dee4c51529c50baf09769f12ef0 (patch)
tree8096f0242ffdf77708455a10b8b14a58335187ed /kernel
parenta7bdb199784fce9584144b51246abd2e01ddc206 (diff)
downloadlinux-7caee37c466a9dee4c51529c50baf09769f12ef0.tar.gz
linux-7caee37c466a9dee4c51529c50baf09769f12ef0.tar.bz2
linux-7caee37c466a9dee4c51529c50baf09769f12ef0.zip
net: usb: usbnet: fix name regression
[ Upstream commit 8a7d12d674ac6f2147c18f36d1e15f1a48060edf ] The fix for MAC addresses broke detection of the naming convention because it gave network devices no random MAC before bind() was called. This means that the check for the local assignment bit was always negative as the address was zeroed from allocation, instead of from overwriting the MAC with a unique hardware address. The correct check for whether bind() has altered the MAC is done with is_zero_ether_addr Signed-off-by: Oliver Neukum <oneukum@suse.com> Reported-by: Greg Thelen <gthelen@google.com> Diagnosed-by: John Sperbeck <jsperbeck@google.com> Fixes: bab8eb0dd4cb9 ("usbnet: modern method to get random MAC") Link: https://patch.msgid.link/20241017071849.389636-1-oneukum@suse.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions