diff options
author | Wen Yang <[email protected]> | 2019-09-29 14:54:24 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-10-01 10:01:58 -0700 |
commit | d2c50b1cd94528aea8c8e9abb4cce81590f32cc4 (patch) | |
tree | 711d4ed6cedd7f807ba0e38310129db4398fb681 /lib/timerqueue.c | |
parent | 83c8c3cf45163f0c823db37be6ab04dfcf8ac751 (diff) |
net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name
of_node_put needs to be called when the device node which is got
from of_get_child_by_name finished using.
In both cases of success and failure, we need to release 'ports',
so clean up the code using goto.
fixes: a556c76adc05 ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Wen Yang <[email protected]>
Cc: Alexandre Belloni <[email protected]>
Cc: Microchip Linux Driver Support <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions