video: tegra: host: Fix overflow issue allocation
authorMikko Perttunen <mperttunen@nvidia.com>
Fri, 27 Jan 2017 07:32:20 +0000 (09:32 +0200)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 5 May 2017 21:54:58 +0000 (14:54 -0700)
commit698ba25737bead5af8dc5bd962d3378400cb39ae
tree71dc3d21e2352dfc5ccd27eee9b0ef1c6c03b643
parent7c7162fbc912dd6c751d929d188b27f71bd2ede3
video: tegra: host: Fix overflow issue allocation

Change kmalloc to kmalloc_array to prevent overflow issues
caused by large values supplied by user.

Based on "video: tegra: host: Fix overflow issues in allocation"
in nvhost/.

Coverity ID 27942
Bug 1856419

Change-Id: I5e96d0ec184543782dfe8814ad7e856b3b71221c
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-on: http://git-master/r/1295062
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/video/tegra/host/host1x/host1x.c