diag: NRT read wakelocks held for very long time

During on-device logging with '-b' option,
NRT read wakelocks i.e. diag_nrt_modem_read
and diag_nrt_wcnss_read were held for more than
a day's time. This patch releases the wakelocks
even if SMD channel will be closed.

Change-Id: I7d211aaeaeb8d59369a191c5eef54c02a1b4a61d
CRs-Fixed: 513309
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
msm: camera: Fix various small issues in vpe driver

Upper and lower bound checks are enforced for num_buff
which is passed from userspace and memset inst_info
to zero to avoid unwanted data passed to userspace

CRs-fixed: 547927
Change-Id: I0d589ef26e57bb26dc006b5927461edcc95e593e
Signed-off-by: Hariram Purushothaman <hpurus@codeaurora.org>
ASoC: wcd9306: unvote pm runtime after slim disconnect port

Codec shutdown removes vote for pm runtime and subsequent call
to slim disconnect port would cause failure as it would race
with pm suspend call. Unvote for pm runtime only when there are
no active dais and remove the vote once the slim ports get
closed successfully at the end of audio session.

CRs-fixed: 566520
Change-Id: Ib620f1644097f69a8180ab96f75d170d068acac5
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
msm: Fix NULL pointer dereference in sensors ADSP driver.

Memory is allocated on the heap via kzalloc for temp variable.
Then it is passed through error checking. Error checking is
incorrect however, because instead of immediately returning -ENOMEM,
the function continues without returning. temp could be potentially
NULL when passed in to memcpy, causing a NULL dereference and writing
to that location.

Change-Id: Ib9faef2a542d1d8da35e1b3f7292596c9bddadba
CRs-fixed: 563553
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
msm: mhl: sii8334: initialize return value

Initialize the variable holding the return code
to appropriate error value so that an incorrect
return code isn't sent to the caller.

Change-Id: I7654523c37ac9b7a60dda1fae77dfacc196df6fa
CRs-Fixed: 524484
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm:cpp: Set inst_info before send it to userspace

If IOCTL command VIDIOC_MSM_CPP_GET_INST_INFO is
called, inst_info structure must be initilaized before
it is sent to userspace.

Change-Id: I4936ae31ecd19cfd25cf22de32101fe3257889d6
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
Merge "ASoC: wcd9306: unvote pm runtime after slim disconnect port"
Merge "diag: NRT read wakelocks held for very long time"
Merge "msm: camera: Fix various small issues in vpe driver"
Merge "msm: mhl: sii8334: initialize return value"
Merge "msm:cpp: Set inst_info before send it to userspace"
Merge "msm: Fix NULL pointer dereference in sensors ADSP driver."