diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-07-30 13:23:39 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-11 18:35:26 -0700 |
commit | 32976e6354d193eb47fd3e405cf22209782efe19 (patch) | |
tree | 538800b705b3bd07e6f618315a18c3250b5f0acb /net | |
parent | 1ec05e6b8c709aa7f250a4ddc9fd4e423bf4cfd1 (diff) | |
download | kernel-common-32976e6354d193eb47fd3e405cf22209782efe19.tar.gz kernel-common-32976e6354d193eb47fd3e405cf22209782efe19.tar.bz2 kernel-common-32976e6354d193eb47fd3e405cf22209782efe19.zip |
net_sched: info leak in atm_tc_dump_class()
[ Upstream commit 8cb3b9c3642c0263d48f31d525bcee7170eedc20 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '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 ca8e0a57d945..1f9c31411f19 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; |