diff options
| author | Jamal Hadi Salim <hadi@zynx.com> | 2004-06-25 21:32:52 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-06-25 21:32:52 -0700 |
| commit | c889f502d4def3ca21be7bf5c50b2105170d1f50 (patch) | |
| tree | 89c9e932734118e04ca7c56af6d1d57287b63557 | |
| parent | d666e943c55315ec62c8796c48e16567864f7807 (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.c | 3 |
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; } |
