lantiq: properly release descriptors in etop driver detach
authorAleksander Jan Bajkowski <olek2@wp.pl>
Sat, 13 Jul 2024 10:11:34 +0000 (12:11 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 21 Jul 2024 12:07:26 +0000 (14:07 +0200)
commitc5a443635a24ccbf03fc809339ab0a51982cd133
tree65d2a429a997e3e1c892ab6bc9dd7e6751b22390
parent02e8285051fc458fa0847eca8dc2490df51d6fc4
lantiq: properly release descriptors in etop driver detach

This patch fixes two issues in the driver detach:
* double free of the same descriptor (upstream bug, backported in 66177c081f1b05e4eb7f6c23d97954e8172c4336),
* releasing tx descriptor instead of rx (downstream bug).

The driver is compiled into the kernel that is why the error
is not visible in normal use.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/15939
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/lantiq/patches-6.6/0028-NET-lantiq-various-etop-fixes.patch