msm: mdp: Validate input arguments from user space

Fully verify the input arguments from user client are safe
to use.

Change-Id: Ie14332443b187951009c63ebfb78456dcd9ba60f
Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org>
Merge "msm: mdp: Validate input arguments from user space"
Merge 3d272df48e0fdc9ef1eaa660989563e944a50b4c on remote branch

Change-Id: Ia99eecf857cf7a72a15d1145d7c34c5f857d24d8
Merge "Merge 3d272df48e0fdc9ef1eaa660989563e944a50b4c on remote branch"