video: tegra: dsi: Set max limit for reading panel
authorPavan Kunapuli <pkunapuli@nvidia.com>
Thu, 16 Mar 2017 14:02:06 +0000 (19:02 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Thu, 29 Jun 2017 23:43:46 +0000 (16:43 -0700)
commit93cc13f260ded6ed6eda0110441cb439fed08a71
treecca1e435163553fadce7c1fa688b2dc415908a6b
parent1c55554e521ecf2ebfa310bc9105048baf1e0d22
video: tegra: dsi: Set max limit for reading panel

In the debugfs support for reading panel registers, max payload
needs to be limited to the buff array size to avoid stack corruption.

Bug 1873360

Change-Id: Ibee7bd81027d2669297942c09b905f1dd3bb09ee
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: sakets <sakets@nvidia.com>
Reviewed-on: https://git-master/r/1505449
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/video/tegra/dc/dsi_debug.c