]> git.baikalelectronics.ru Git - kernel.git/commit
usbb: catc: use correct API for MAC addresses
authorOliver Neukum <oneukum@suse.com>
Mon, 25 Oct 2021 14:11:21 +0000 (16:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2021 14:34:02 +0000 (15:34 +0100)
commit44cb90d7421a5de427632e699132acad317dce89
tree0200e313d08b4f12c99c26c3cf53706f5f41d801
parent8f114fa9f7e7c2fd857a487c923f9bef8ef7fc0a
usbb: catc: use correct API for MAC addresses

Commit 09f15be0aa1e ("net-next: When a bond have a massive amount
of VLANs...") introduced a rbtree for faster Ethernet address look
up. To maintain netdev->dev_addr in this tree we need to make all
the writes to it got through appropriate helpers.

In the case of catc we need a new temporary buffer to conform
to the rules for DMA coherency. That in turn necessitates
a reworking of error handling in probe().

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/catc.c