ath25: eth: fix crash on skb DMA (un-)map
authorSergey Ryazanov <ryazanov.s.a@gmail.com>
Fri, 4 Sep 2020 23:51:31 +0000 (02:51 +0300)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 6 Sep 2020 17:49:43 +0000 (19:49 +0200)
commitce3b135243ea6f313eb768a23000a436b8a7b2cc
tree74848ecd91b2fc5b8232e85fc01fec77ad5ffd50
parent36e06497f4612a8b7b341dc3834c7281ac8a9b27
ath25: eth: fix crash on skb DMA (un-)map

AR2315 Ethernet driver pass NULL instead of a real device pointer to DMA
(un-)map calls. With kernel version 5.4 such behaviour causes a kernel
panic. Fix this issue by preserving device pointer during the probe
procedure and pass it to each skb data DMA (un-)map call.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
target/linux/ath25/patches-5.4/110-ar2313_ethernet.patch
target/linux/ath25/patches-5.4/220-enet_micrel_workaround.patch