diff options
author | Patrick McHardy <kaber@trash.net> | 2005-06-28 12:55:30 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-28 12:55:30 -0700 |
commit | 9ef1d4c7c7aca1cd436612b6ca785b726ffb8ed8 (patch) | |
tree | a2465b3bf0f4c3bdd1f759d8a90cf8f8db06900a /net/sched/sch_api.c | |
parent | b3563c4fbff906991a1b4ef4609f99cca2a0de6a (diff) | |
download | kernel_samsung_tuna-9ef1d4c7c7aca1cd436612b6ca785b726ffb8ed8.zip kernel_samsung_tuna-9ef1d4c7c7aca1cd436612b6ca785b726ffb8ed8.tar.gz kernel_samsung_tuna-9ef1d4c7c7aca1cd436612b6ca785b726ffb8ed8.tar.bz2 |
[NETLINK]: Missing initializations in dumped data
Mostly missing initialization of padding fields of 1 or 2 bytes length,
two instances of uninitialized nlmsgerr->msg of 16 bytes length.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_api.c')
-rw-r--r-- | net/sched/sch_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 97c1c75..05e6e0a 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -770,6 +770,8 @@ static int tc_fill_qdisc(struct sk_buff *skb, struct Qdisc *q, u32 clid, nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags); tcm = NLMSG_DATA(nlh); tcm->tcm_family = AF_UNSPEC; + tcm->tcm__pad1 = 0; + tcm->tcm__pad2 = 0; tcm->tcm_ifindex = q->dev->ifindex; tcm->tcm_parent = clid; tcm->tcm_handle = q->handle; |