gpu: nvgpu: initialize local variable
authorDeepak Nibade <dnibade@nvidia.com>
Thu, 4 Aug 2016 14:12:38 +0000 (19:12 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 12 Aug 2016 04:15:49 +0000 (21:15 -0700)
commit7be6906e641718fb4c22d78f83b21c5e95f256f3
treead6b6a087d139d22e5111cc545670e6000162425
parent992c7d59293d136bd356d79791444cf5c90d24aa
gpu: nvgpu: initialize local variable

Initialize character array buf in gk20a_channel_ioctl() to zero
Keeping it uninitialized can result in leaking kernel stack
info to user space since we pass this buffer to UMD

Bug 1793398

Change-Id: Iffd654dbaca3b4e3c8fd2ac270d0febd01c165b8
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1195862
(cherry picked from commit 118809f4bd07af20df2b6c012828834695a5fccf)
Reviewed-on: http://git-master/r/1201487
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_gk20a.c