Sumera Priyadarsini
6f402109ff
net: gianfar: Add of_node_put() before goto statement
...
[ Upstream commit 989e4da042 ]
Every iteration of for_each_available_child_of_node() decrements
reference count of the previous node, however when control
is transferred from the middle of the loop, as in the case of
a return or break or goto, there is no decrement thus ultimately
resulting in a memory leak.
Fix a potential memory leak in gianfar.c by inserting of_node_put()
before the goto statement.
Issue found with Coccinelle.
Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-05-16 08:57:21 +09:00
..
2023-05-16 08:46:09 +09:00
2023-05-16 08:54:24 +09:00
2023-05-16 08:21:44 +09:00
2023-05-16 08:45:16 +09:00
2023-05-16 08:39:06 +09:00
2023-05-15 16:46:34 +09:00
2023-05-16 08:29:24 +09:00
2023-05-15 16:30:44 +09:00
2023-05-15 17:13:43 +09:00
2023-05-15 16:21:24 +09:00
2023-05-16 08:46:11 +09:00
2023-05-16 08:48:29 +09:00
2023-05-15 17:33:19 +09:00
2023-05-15 17:14:58 +09:00
2023-05-15 17:34:06 +09:00
2023-05-16 08:47:23 +09:00
2023-05-15 16:58:51 +09:00
2023-05-16 08:38:23 +09:00
2023-05-15 16:17:55 +09:00
2023-05-16 08:57:04 +09:00
2023-05-16 08:19:49 +09:00
2023-05-15 16:31:00 +09:00
2023-05-16 08:29:32 +09:00
2023-05-16 08:45:31 +09:00
2023-05-16 08:56:58 +09:00
2023-05-16 08:38:20 +09:00
2023-05-16 08:31:03 +09:00
2023-05-15 17:11:00 +09:00
2023-05-16 08:57:12 +09:00
2023-05-15 16:59:25 +09:00
2023-05-15 12:46:28 +09:00
2023-05-16 08:47:47 +09:00
2023-05-16 08:21:33 +09:00
2023-05-16 08:54:50 +09:00
2023-05-16 08:56:39 +09:00
2023-05-16 08:31:09 +09:00
2023-05-15 16:15:52 +09:00
2023-05-16 08:46:35 +09:00
2023-05-15 17:34:39 +09:00
2023-05-15 14:08:07 +09:00
2023-05-16 08:48:03 +09:00
2023-05-16 08:57:05 +09:00
2023-05-15 12:52:51 +09:00
2023-05-15 14:51:01 +09:00
2023-05-16 08:29:41 +09:00
2023-05-16 08:48:39 +09:00
2023-05-16 08:46:23 +09:00
2023-05-15 17:34:04 +09:00
2023-05-16 08:45:03 +09:00
2023-05-16 08:57:21 +09:00
2023-05-16 08:44:30 +09:00
2023-05-15 15:18:34 +09:00
2023-05-15 17:29:23 +09:00
2023-05-15 16:46:52 +09:00
2023-05-15 17:31:34 +09:00
2023-05-15 17:16:01 +09:00
2023-05-16 08:47:32 +09:00
2023-05-15 16:19:36 +09:00
2023-05-16 08:56:52 +09:00
2023-05-15 14:09:37 +09:00
2023-05-15 15:10:20 +09:00
2023-05-16 08:47:11 +09:00
2023-05-16 08:45:44 +09:00
2023-05-16 08:46:54 +09:00
2023-05-15 12:46:28 +09:00
2023-05-15 14:08:51 +09:00
2023-05-15 17:27:25 +09:00
2023-05-16 08:48:30 +09:00
2023-05-15 17:29:33 +09:00
2023-05-15 16:58:29 +09:00
2023-05-15 17:23:50 +09:00
2023-05-15 15:12:21 +09:00
2023-05-15 17:15:54 +09:00
2023-05-16 08:57:18 +09:00
2023-05-16 08:57:20 +09:00
2023-05-15 17:15:58 +09:00
2023-05-16 08:31:13 +09:00
2023-05-15 12:59:29 +09:00
2023-05-16 08:56:55 +09:00
2023-05-16 08:56:38 +09:00
2023-05-16 08:30:36 +09:00
2023-05-15 14:55:28 +09:00
2023-05-16 08:38:44 +09:00
2023-05-16 08:31:00 +09:00
2023-05-16 08:57:13 +09:00
2023-05-16 08:19:24 +09:00
2023-05-15 17:25:24 +09:00
2023-05-16 08:56:51 +09:00
2023-05-15 12:50:46 +09:00
2023-05-16 08:54:57 +09:00
2023-05-15 16:59:11 +09:00
2023-05-15 17:34:48 +09:00
2023-05-16 08:48:16 +09:00
2023-05-16 08:55:14 +09:00