]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_sample: Fix error path in init
authorYotam Gigi <yotamg@mellanox.com>
Tue, 31 Jan 2017 09:33:53 +0000 (11:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Feb 2017 19:10:03 +0000 (14:10 -0500)
commita029491f1f87ae73b4f2d92d77d5b73f9b4e5fd6
treec7b4d560f23e9e915ef165f12321f8f4800bb9f7
parent91e759b16d0793316ff67bd1f283575ecb0951a5
net/sched: act_sample: Fix error path in init

Fix error path of in sample init, by releasing the tc hash in case of
failure in psample_group creation.

Fixes: 00966d13ecc3 ("net/sched: Introduce sample tc action")
Reported-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_sample.c