Sumera Priyadarsini
9c0305c0cf
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 >
2020-09-03 11:27:00 +02:00
..
2020-08-19 08:16:05 +02:00
2020-08-11 15:33:35 +02:00
2020-06-30 15:37:03 -04:00
2020-08-11 15:33:38 +02:00
2020-08-21 13:05:26 +02:00
2020-09-03 11:26:55 +02:00
2020-08-19 08:16:16 +02:00
2020-08-19 08:16:00 +02:00
2020-01-04 19:18:25 +01:00
2020-08-19 08:16:27 +02:00
2020-08-21 13:05:35 +02:00
2020-07-22 09:32:51 +02:00
2020-05-02 08:48:44 +02:00
2020-09-03 11:26:53 +02:00
2020-06-22 09:31:10 +02:00
2020-08-21 13:05:32 +02:00
2020-05-27 17:46:48 +02:00
2020-09-03 11:26:50 +02:00
2020-07-29 10:18:37 +02:00
2020-07-29 10:18:29 +02:00
2020-09-03 11:26:53 +02:00
2020-06-24 17:50:36 +02:00
2020-01-09 10:20:06 +01:00
2020-08-26 10:41:07 +02:00
2020-07-29 10:18:31 +02:00
2019-12-31 16:45:09 +01:00
2020-06-22 09:31:20 +02:00
2020-07-29 10:18:26 +02:00
2020-09-03 11:26:58 +02:00
2020-09-03 11:26:46 +02:00
2020-08-11 15:33:38 +02:00
2020-09-03 11:26:54 +02:00
2020-08-19 08:16:14 +02:00
2020-09-03 11:26:55 +02:00
2020-02-24 08:36:53 +01:00
2020-08-21 13:05:24 +02:00
2020-08-26 10:41:05 +02:00
2020-08-26 10:40:55 +02:00
2020-09-03 11:26:43 +02:00
2020-05-27 17:46:47 +02:00
2020-08-21 13:05:20 +02:00
2020-08-19 08:16:11 +02:00
2020-08-19 08:16:15 +02:00
2020-06-24 17:50:36 +02:00
2020-08-26 10:40:48 +02:00
2020-09-03 11:26:53 +02:00
2020-01-17 19:48:59 +01:00
2020-07-16 08:16:36 +02:00
2020-09-03 11:26:43 +02:00
2020-08-19 08:16:08 +02:00
2020-08-21 13:05:32 +02:00
2020-08-21 13:05:30 +02:00
2020-09-03 11:27:00 +02:00
2020-08-05 09:59:50 +02:00
2020-06-24 17:50:41 +02:00
2020-08-21 13:05:35 +02:00
2020-09-03 11:26:55 +02:00
2020-06-10 20:24:57 +02:00
2020-07-22 09:32:55 +02:00
2020-08-26 10:40:53 +02:00
2020-08-19 08:16:26 +02:00
2019-12-31 16:45:25 +01:00
2020-09-03 11:26:53 +02:00
2020-07-29 10:18:40 +02:00
2020-08-19 08:16:14 +02:00
2020-08-21 13:05:29 +02:00
2020-08-21 13:05:30 +02:00
2020-08-19 08:16:16 +02:00
2020-01-14 20:08:18 +01:00
2020-01-23 08:22:51 +01:00
2020-08-21 13:05:34 +02:00
2020-05-27 17:46:48 +02:00
2020-08-19 08:15:57 +02:00
2020-08-21 13:05:29 +02:00
2020-02-24 08:36:41 +01:00
2020-01-14 20:08:37 +01:00
2020-08-26 10:40:54 +02:00
2020-09-03 11:26:59 +02:00
2020-09-03 11:27:00 +02:00
2020-07-22 09:33:08 +02:00
2020-08-19 08:15:59 +02:00
2020-07-22 09:33:00 +02:00
2020-09-03 11:26:58 +02:00
2020-02-19 19:53:07 +01:00
2020-08-19 08:16:13 +02:00
2020-09-03 11:26:44 +02:00
2020-02-05 21:22:49 +00:00
2020-08-19 08:16:14 +02:00
2020-02-28 17:22:13 +01:00
2020-07-29 10:18:43 +02:00
2020-07-22 09:33:13 +02:00
2020-09-03 11:26:56 +02:00
2020-08-26 10:41:03 +02:00
2020-08-05 09:59:42 +02:00
2020-09-03 11:26:45 +02:00
2020-07-22 09:33:11 +02:00
2020-08-26 10:40:57 +02:00
2020-02-24 08:36:47 +01:00
2020-02-24 08:36:48 +01:00
2020-06-22 09:31:26 +02:00
2020-08-21 13:05:36 +02:00
2020-08-26 10:41:07 +02:00