msm:camera: Fix overflow issue in ioctl_hw_cmds function

    'len' is of type signed int 32bit,but the assigned value
    may exceed maximum unsigned int32 range.Add overflow check
    and graceful exit if 'm'exceeds UINT32_MAX value.

Change-Id: I38f0d10a0cb44d08d0054f91044fc891c246ebd1
CRs-Fixed: 493314
Signed-off-by: Monika Alekhya <malekh@codeaurora.org>
M2: sound: Update usage of clock enable/disable APIs.

Use the new clk_prepare_enable/clk_disable_unprepare APIs in all
instances.

This fixes a PM leak, where the external codec clock is not disabled during
suspend, due to unbalanced usage of the clk_un/prepare APIs.

Change-Id: Ica036dbb0d9386062e8503b7236621f394b28d84
Merge "diag: Add debug prints in error cases"
msm: camera: Fix for kernel panic

check if buffer instance handle is zero while
getting pcam instance based on instance handle
in msm_mctl_reserve_free_buf function

Change-Id: Id3861c4f29fb4f7fd62ad6de6597e65c7c4f656b
Signed-off-by: manish gotefode <mgote@codeaurora.org>