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