msm: vidc: Check validity of userspace address

Before writing to a userspace address, verification
of the validity of user space address is required.

Change-Id: I9141e44a6c11aaf3f4d57c08bb0dd26a7b214f34
CRs-fixed: 556356
Signed-off-by: Deepak Verma <dverma@codeaurora.org>
msm: fb: Copy unsigned int for notify update

Change to correct signature of msmfb_notify_update
from the ioctl declaration.

Change-Id: Ia7bdfd3dbe8494a641ffd46d484794b4bec7d27c
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
msm: fb: Null check mfd data

Add appropriate null check for mfd data structure before
accessing it's members. This prevents null pointer accesses
in the driver.

Change-Id: I5aae937f839e4f6ed8d5c5a4b54ab45f0ff07332
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
Signed-off-by: Neti, Ravi Kumar <ravineti@codeaurora.org>
qdsp5: memset stack buffer allocation.

This is needed to avoid garbage data in uninitialized variables.

Change-Id: I8a55cd188f8dac86bfafe9c1fc1b4c9e44623776
CRs-Fixed: 553260
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
msm: Remove files no longer buildable under arch/arm/mach-msm

Removed the files to reduce efforts as we move driver code out of mach-msm

Change-Id: I6db1521425d22f6b6d8bdfa89156303cc337db24
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
msm: qdsp5: memset stack buffer allocation.

This is needed to avoid garbage data in uninitialized variables.

Change-Id: I061e7373c05d0239e2c0cb53c71a9ca1cebe6fc8
CRs-Fixed: 554317
CRs-Fixed: 554822
CRs-Fixed: 554844
CRs-Fixed: 556206
CRs-Fixed: 556792
CRs-Fixed: 556786
CRs-Fixed: 556782
CRs-Fixed: 556223
CRs-Fixed: 556219
CRs-Fixed: 556217
CRs-Fixed: 556216
CRs-Fixed: 556212
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
Merge "msm: vidc: Check validity of userspace address"
msm: qdsp5: Update code to avoid access userspace data

Copy userspace data to kernel and then access the data
to avoid invalid pointer access issue.
Also, prevent use of uninitialized variables by checking
sscanf return value.

Change-Id: I53c6b0218b26823abfa60fcc015e6c44882b9e5e
CRs-Fixed: 547923
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
msm:qdsp5:Fix to avoid kernel memory disclosure in audio_mvs_ioctl

In audio_mvs_ioctl, msm_audio_mvs_config structre's dtx_mode and
min_max_rate are not initializing, this can lead to a situation
where kernel stack memory is leaked back to user space.
Initializing the strcuture to zero befor using to avoid this situation.

Change-Id: I79a80db4acc3d7b17aeb8ff6b8aa79c562a43c3b
CRs-Fixed: 553259
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
Merge "qdsp5: memset stack buffer allocation."
Merge "msm:qdsp5:Fix to avoid kernel memory disclosure in audio_mvs_ioctl"
Merge "msm: Remove files no longer buildable under arch/arm/mach-msm"
Merge "msm: qdsp5: Update code to avoid access userspace data"
Merge "msm: qdsp5: memset stack buffer allocation."
Merge "msm: fb: Copy unsigned int for notify update"
Merge "msm: fb: Null check mfd data"