]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: dc: ext: fix memleak and check args
authorJon Mayo <jmayo@nvidia.com>
Thu, 7 Feb 2013 02:04:59 +0000 (18:04 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:00:22 +0000 (13:00 -0700)
commitf516c3be8fef54a398babe773ee84b2afb1d1e0d
treef1ce4a3dce09717fd92e9fa38888c41424844245
parente743bd6e279b113a17287f74680777ddb0e2ae37
video: tegra: dc: ext: fix memleak and check args

check overflow of win_num argument to TEGRA_DC_EXT_FLIP2 ioctl.
fix kernel memory leak when ioctl fails.
copy the correct number of window args on TEGRA_DC_EXT_FLIP ioctl.

Change-Id: I57b27f348ead1ac4cdef45a83dc2c46c9c70c582
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/204183
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
drivers/video/tegra/dc/ext/dev.c