msm: mdp: Validate input arguments from user space