diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-07-30 13:23:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-31 15:04:19 -0700 |
commit | 8cb3b9c3642c0263d48f31d525bcee7170eedc20 (patch) | |
tree | 2ae4f63ec5b9136a7c4c88a18fb52ada1044f0ac | |
parent | c8826de8af3b3c849ba9197851211ced62387a57 (diff) | |
download | op-kernel-dev-8cb3b9c3642c0263d48f31d525bcee7170eedc20.zip op-kernel-dev-8cb3b9c3642c0263d48f31d525bcee7170eedc20.tar.gz |
net_sched: info leak in atm_tc_dump_class()
The "pvc" struct has a hole after pvc.sap_family which is not cleared.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sched/sch_atm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c index ca8e0a5..1f9c314 100644 --- a/net/sched/sch_atm.c +++ b/net/sched/sch_atm.c @@ -605,6 +605,7 @@ static int atm_tc_dump_class(struct Qdisc *sch, unsigned long cl, struct sockaddr_atmpvc pvc; int state; + memset(&pvc, 0, sizeof(pvc)); pvc.sap_family = AF_ATMPVC; pvc.sap_addr.itf = flow->vcc->dev ? flow->vcc->dev->number : -1; pvc.sap_addr.vpi = flow->vcc->vpi; |