diff options
author | David S. Miller <davem@davemloft.net> | 2022-10-17 09:35:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-17 09:35:06 +0100 |
commit | a887b59f6a168e13a7608c64b61e6d5b769f80ee (patch) | |
tree | 7063bef29c9979b69ead17a1faf5e46a27209edd /drivers/leds | |
parent | 2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08 (diff) | |
parent | e0bb4659e235770e6f53b3692e958591f49448f5 (diff) |
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 <davem@davemloft.net>
Diffstat (limited to 'drivers/leds')
0 files changed, 0 insertions, 0 deletions