base: genlock: Zero a structure before sending it to user space

In the handler for GENLOCK_IOC_EXPORT zero the entire genlock_lock
structure before passing it to the user.

CRs-fixed: 552303
Change-Id: Ic0dedbad257bf0a448d0bf67a14a3932b7925bfc
Signed-off-by: Jordan Crouse <jcrouse@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>
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: 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>
fix msm_fb build after latest merge

Change-Id: I39e70dc12cc86f26dead5b677a3a1d53ff760933
msm_fb: Copy splash image to kernel memory

The bootloader memory from which the splashscreen is shown
gets reclaimed before frame update happens from framework.
Hence, copy the splash image to a local buffer as soon as
display is initialized. This will ensure proper continuous
splashscreen functionality.

Change-Id: I9e9b45b001ab390959bde5039ed8b859361ec888
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
msm_fb: Disable LCDC/DSI Video timing generator during boot
 up

Disable LCDC and DSI Video timing generator during MDP
initialization if continuous splash screen is disabled.

Change-Id: I64276550f28e1f316c420f9cb158f7b8e938b8ea