video: tegra: host: Fix overflow issue allocation
authorMikko Perttunen <mperttunen@nvidia.com>
Fri, 27 Jan 2017 07:32:20 +0000 (09:32 +0200)
committerManish Tuteja <mtuteja@nvidia.com>
Thu, 6 Apr 2017 00:55:55 +0000 (17:55 -0700)
commitdf7d335270617c5f7a79f95ffc16708a560bf663
treecb782319aec371f91a45a21bcd371a0148ca1cf1
parent373cf2311735878a0af6ef5fc09daad86c729c3b
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: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1295053
(cherry picked from commit 66adb8e35e0ad0d5ce383996fcc8bad3be8821f5)
Reviewed-on: http://git-master/r/1330541
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
drivers/video/tegra/host/host1x/host1x.c