diff options
author | Jianqiang Zhao <zhaojianqiang1@gmail.com> | 2016-08-02 11:57:13 +0800 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2016-08-24 09:09:13 -0700 |
commit | 39d7779c3d24376c6162dd328b24f9d902a85bdb (patch) | |
tree | 6c910c1c20675b95e2ba3b0cfb297f119739a134 /drivers/misc | |
parent | 17db3ff7afbc5a92638f7d1d7d1d82767623fcc7 (diff) |
quadd: fix stack info leak when getting capabilities
Fix stack info leak when getting capabilities
Bug 1797747
Change-Id: Ic39112748fb2f053e6963b88e46ba2d953390edf
Signed-off-by: Jianqiang Zhao <zhaojianqiang1@gmail.com>
Reviewed-on: http://git-master/r/1205756
GVS: Gerrit_Virtual_Submit
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/tegra-profiler/comm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/tegra-profiler/comm.c b/drivers/misc/tegra-profiler/comm.c index 80c84614081a..b8bbb2621841 100644 --- a/drivers/misc/tegra-profiler/comm.c +++ b/drivers/misc/tegra-profiler/comm.c @@ -483,6 +483,7 @@ device_ioctl(struct file *file, break; case IOCTL_GET_CAP: + memset(&cap, 0, sizeof(cap)); comm_ctx.control->get_capabilities(&cap); if (copy_to_user((void __user *)ioctl_param, &cap, sizeof(struct quadd_comm_cap))) { |