video: tegra: nvmap: Fix security issue in NVMAP_IOC_PARAM
authorGagan Grover <ggrover@nvidia.com>
Thu, 24 Nov 2016 11:28:49 +0000 (16:28 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Tue, 29 Nov 2016 11:50:55 +0000 (03:50 -0800)
commitcc94ffd0b3b2c2075cb870ead1e6e8994d902a56
treeca5cc83dd63f38e1fc1fbaa959aafd5ae17f0313
parent0c20962647685008dfc6a15fb8a2169ed2abafe6
video: tegra: nvmap: Fix security issue in NVMAP_IOC_PARAM

Initialized the uninitialized variables and handled return status
from nvmap_get_handle_param.

Bug 1820242

Change-Id: I2390c859d2b2af39eaff44749ca64e60920fe944
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1259560
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/video/tegra/nvmap/nvmap_ioctl.c