projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb49ab0
)
IB/mlx5: Fix steering resource leak
author
Maor Gottlieb
<maorg@mellanox.com>
Sun, 28 Aug 2016 11:16:30 +0000
(14:16 +0300)
committer
Doug Ledford
<dledford@redhat.com>
Fri, 7 Oct 2016 20:54:14 +0000
(16:54 -0400)
Fix multicast flow rule leak on adding unicast rule failure.
Fixes:
038d2ef87572
('IB/mlx5: Add flow steering support')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/mlx5/main.c
b/drivers/infiniband/hw/mlx5/main.c
index 840fbd0c9dca4c7d5d7fadc58bdcae6d45bafbd7..87988fbc87b4117278eca5296064afe144d7e1cc 100644
(file)
--- a/
drivers/infiniband/hw/mlx5/main.c
+++ b/
drivers/infiniband/hw/mlx5/main.c
@@
-1861,6
+1861,7
@@
static struct mlx5_ib_flow_handler *create_leftovers_rule(struct mlx5_ib_dev *de
&leftovers_specs[LEFTOVERS_UC].flow_attr,
dst);
if (IS_ERR(handler_ucast)) {
+ mlx5_del_flow_rule(handler->rule);
kfree(handler);
handler = handler_ucast;
} else {