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: Ifb5ab1082341cab701f74cd5e6cdac67c89c0f79
Merge "Merge 3d272df48e0fdc9ef1eaa660989563e944a50b4c on remote branch"