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:44:03 +0000 (16:44 -0700)
commit54c1cc0aa58a97e18563c6d996d5dde741055ddd
tree50cf41969456ffed3140cdb56dbb127841ecc3ab
parentd45c4c5cae287106a349c4f85d12c45920147fb0
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/1507653
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/video/tegra/dc/dsi_debug.c