Jiri Pirko
80532384af
net: sched: fix memleak for chain zero
...
There's a memleak happening for chain 0. The thing is, chain 0 needs to
be always present, not created on demand. Therefore tcf_block_get upon
creation of block calls the tcf_chain_create function directly. The
chain is created with refcnt == 1, which is not correct in this case and
causes the memleak. So move the refcnt increment into tcf_chain_get
function even for the case when chain needs to be created.
Reported-by: Jakub Kicinski <kubakici@wp.pl >
Fixes: 5bc1701881
("net: sched: introduce multichain support for filters")
Signed-off-by: Jiri Pirko <jiri@mellanox.com >
Tested-by: Jakub Kicinski <jakub.kicinski@netronome.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-09-07 19:17:20 -07:00
..
2017-09-05 14:48:29 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2016-03-01 17:15:23 -05:00
2016-03-01 17:15:23 -05:00
2016-09-19 21:55:28 -04:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-08-30 14:38:51 -07:00
2017-09-07 19:17:20 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2017-08-07 14:12:17 -07:00
2017-08-07 14:12:17 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2007-07-10 22:16:41 -07:00
2007-07-10 22:16:41 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2017-08-31 11:40:52 -07:00
2014-10-06 18:02:32 -04:00
2011-01-19 23:31:12 -08:00
2016-11-03 10:56:21 +01:00
2017-07-01 07:39:08 -07:00
2014-10-06 18:02:32 -04:00
2015-02-22 15:59:54 -05:00
2011-01-19 23:31:12 -08:00
2017-04-13 13:58:22 -04:00
2017-06-05 10:56:36 -04:00
2017-01-24 13:44:28 -05:00
2017-09-01 17:42:05 -07:00
2017-08-25 17:19:10 -07:00
2016-06-25 12:19:35 -04:00
2017-09-01 17:42:05 -07:00
2017-05-08 17:15:13 -07:00
2017-04-13 13:58:22 -04:00
2017-08-25 17:19:10 -07:00
2017-08-25 17:19:10 -07:00
2016-09-19 01:47:18 -04:00
2017-09-01 17:42:05 -07:00
2017-07-12 16:26:03 -07:00
2017-09-01 17:42:05 -07:00
2017-04-13 13:58:22 -04:00
2017-09-01 17:42:05 -07:00
2017-08-30 15:26:11 -07:00
2017-09-01 17:42:05 -07:00
2017-08-25 17:19:10 -07:00
2017-08-25 17:19:10 -07:00
2017-08-25 17:19:10 -07:00
2017-09-01 17:42:05 -07:00
2017-09-01 17:42:05 -07:00
2017-04-13 13:58:22 -04:00
2016-06-25 12:19:35 -04:00
2017-09-06 21:20:07 -07:00
2017-09-06 21:20:07 -07:00
2017-08-25 17:19:10 -07:00
2017-08-25 17:19:10 -07:00
2017-09-01 17:42:05 -07:00
2017-09-01 17:42:05 -07:00
2017-01-08 17:51:44 -05:00