summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamal Hadi Salim <hadi@zynx.com>2004-06-25 21:32:52 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-06-25 21:32:52 -0700
commitc889f502d4def3ca21be7bf5c50b2105170d1f50 (patch)
tree89c9e932734118e04ca7c56af6d1d57287b63557
parentd666e943c55315ec62c8796c48e16567864f7807 (diff)
[PKT_SCHED]: In tca_action_flush, don't pass NULL netlink callback into ops->walk().
Signed-off-by: Jamal Hadi Salim <hadi@zynx.com> Signed-off-by: David S. Miller <davem@redhat.com>
-rw-r--r--net/sched/act_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index 91076dc78b5d..1e3bf5b42715 100644
--- a/net/sched/act_api.c
+++ b/net/sched/act_api.c
@@ -610,6 +610,7 @@ int tca_action_flush(struct rtattr *rta, struct nlmsghdr *n, u32 pid)
unsigned char *b;
struct nlmsghdr *nlh;
struct tcamsg *t;
+ struct netlink_callback dcb;
struct rtattr *x;
struct rtattr *tb[TCA_ACT_MAX+1];
struct rtattr *kind = NULL;
@@ -646,7 +647,7 @@ int tca_action_flush(struct rtattr *rta, struct nlmsghdr *n, u32 pid)
x = (struct rtattr *) skb->tail;
RTA_PUT(skb, TCA_ACT_TAB, 0, NULL);
- err = a->ops->walk(skb, NULL, RTM_DELACTION, a);
+ err = a->ops->walk(skb, &dcb, RTM_DELACTION, a);
if (0 > err ) {
goto rtattr_failure;
}