mm: vmscan: lock page on swap error in pageout

A workaround was added ealier to move a page to active
list if swapping to devices like zram fails. But this
can result in try_to_free_swap being called from
shrink_page_list, without a properly locked page.
Lock the page when we indicate to activate a page
in pageout().
Add a check to ensure that error is on swap, and
clear the error flag before moving the page to
active list.

CRs-fixed: 760049
Change-Id: I77a8bbd6ed13efdec943298fe9448412feeac176
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
wcnss: Fix for Static analysis issues

In wcnssctrl_rx_handler value of len could become negative
after substracting sizeof(struct smd_msg_hdr) from len.
There is no check to verify if value of len is less than
sizeof(struct smd_msg_hdr).

Adds proper check to verify if value of len is less than
sizeof(struct smd_msg_hdr).

Change-Id: I8a3bc9eb63e1b232023444bb8258bcdaccfa1c34
CRs-Fixed: 633938
Signed-off-by: Abhishek Singh <absingh@codeaurora.org>
ASoC: msm: Fix qcom aac enc - allow alloc of less buffers

Commit "SoC: msm: Add Buffer overflow check" strictly enforces
buffer count to 8, otherwise allocation will fail, which breaks
qcom hw aac encoder. To fix it, allow the buffer count to be 8
or less.

Change-Id: Ia554bde6058abd7ff5447fd69b517217eb83d59c
msm: mdss: do not call panel off multiple times

expand the check so panel off does not get called multiple times

Change-Id: Idec082524e0c2060cedd43c3536e0072608796da
Signed-off-by: Evisceration <eviscerationls@gmail.com>
msm8974pro: remove 300mhz frequency and replace it with 268mhz