tegra-alt: adsp: add parameter size checks
authorViraj Karandikar <vkarandikar@nvidia.com>
Tue, 14 Mar 2017 05:17:22 +0000 (10:17 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Mon, 26 Feb 2018 19:17:52 +0000 (11:17 -0800)
commit48b337a68a6a22da79463f21b4e9d96c67df78e8
tree1e42abb0c0b16d561cb5b5919c310766919409c2
parent5a2407e166a86148c4b60c52fc639c6dde0652bf
tegra-alt: adsp: add parameter size checks

Fix possible buffer overflow in case of invalid user
parameter by adding size checks

Bug 1869543
Bug 1888389
Bug 2002359

Change-Id: I82ac00e24a3ca40915eb6c556454c9649cb644bd
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1297227
(cherry-picked from commit 2e4308a3800f3dcd4aa91a1b446cf00cf7ebda59)
Reviewed-on: http://git-master/r/1320244
Signed-off-by: Amulya Y <ayarlagadda@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1656808
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
sound/soc/tegra-alt/tegra210_adsp_alt.c