[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>
This commit is contained in:
committed by
David S. Miller
parent
b3563c4fbf
commit
9ef1d4c7c7
@@ -1563,6 +1563,8 @@ static __inline__ int cbq_dump_police(struct sk_buff *skb, struct cbq_class *cl)
|
||||
|
||||
if (cl->police) {
|
||||
opt.police = cl->police;
|
||||
opt.__res1 = 0;
|
||||
opt.__res2 = 0;
|
||||
RTA_PUT(skb, TCA_CBQ_POLICE, sizeof(opt), &opt);
|
||||
}
|
||||
return skb->len;
|
||||
|
Reference in New Issue
Block a user