From: David S. Miller Date: Mon, 17 Oct 2022 08:35:06 +0000 (+0100) Subject: Merge branch 'mtk_eth_wed-leak-fixes' X-Git-Tag: baikal/mips/sdk6.1~4566^2~16 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=e4b99fcfba2167c5846ccc003136922751eca24d;p=kernel.git Merge branch 'mtk_eth_wed-leak-fixes' Yang Yingliang says: ==================== net: ethernet: mtk_eth_wed: fixe some leaks I found some leaks in mtk_eth_soc.c/mtk_wed.c. patch#1 - I found mtk_wed_exit() is never called, I think mtk_wed_exit() need be called in error path or module remove function to free the memory allocated in mtk_wed_add_hw(). patch#2 - The device is not put in error path in mtk_wed_add_hw(). patch#3 - The device_node pointer returned by of_parse_phandle() with refcount incremented, it should be decreased when it done. This patchset was just compiled tested because I don't have any HW on which to do the actual tests. ==================== Signed-off-by: David S. Miller --- e4b99fcfba2167c5846ccc003136922751eca24d