qseecom: Check input buffer from IOCTL

IOCTL messages come with pointers to buffer, check these
buffer pointers prior to accessing it.

Change-Id: Ibd724a35682a6f8e4f6900c8404854a8b55c0c9a
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
Merge "qseecom: Add checks for user space buffer pointers"
Merge "qseecom: Check input buffer from IOCTL"
msm: mdss: Move histogram completion initialization to pp_init

The histogram completion structure only needs to be initialized fully
once, and this can be done when the pp resource structure is created.
Otherwise, when enabling the histograms, it is sufficient to use the
reusable INIT_COMPLETION, in order to avoid any wait_queue errors.

Change-Id: Id4bfb19c91bd5ab07c01a5eb347ba50621fe8a97
Signed-off-by: Benet Clark <benetc@codeaurora.org>
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
Merge "qseecom: Copy userspace buffer into kernel space before dereferencing"
Merge "msm: usbaudio: Add check for NULL before dereferencing"
Merge "msm: mdss: Move histogram completion initialization to pp_init"
Merge bbd9dabe4e80900cd5dca8280d8d3f2146095bc0 on remote branch

Change-Id: I00b1def2b39aafbcf2471a0f7678275371ff2d46
Merge "Merge bbd9dabe4e80900cd5dca8280d8d3f2146095bc0 on remote branch"