ARM: 7809/1: perf: fix event validation for software group leaders

It is possible to construct an event group with a software event as a
group leader and then subsequently add a hardware event to the group.
This results in the event group being validated by adding all members
of the group to a fake PMU and attempting to allocate each event on
their respective PMU.

Unfortunately, for software events wthout a corresponding arm_pmu, this
results in a kernel crash attempting to dereference the ->get_event_idx
function pointer.

This patch fixes the problem by checking explicitly for software events
and ignoring those in event validation (since they can always be
scheduled). We will probably want to revisit this for 3.12, since the
validation checks don't appear to work correctly when dealing with
multiple hardware PMUs anyway.

Change-Id: Ic7230fff1ed0f44c5c73ecacd24bc90de9575c2a
Cc: <stable@vger.kernel.org>
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
sock_diag: Fix out-of-bounds access to sock_diag_handlers[]

Userland can send a netlink message requesting SOCK_DIAG_BY_FAMILY
with a family greater or equal then AF_MAX -- the array size of
sock_diag_handlers[]. The current code does not test for this
condition therefore is vulnerable to an out-of-bound access opening
doors for a privilege escalation.

Change-Id: I73c7d7ab15a181f8a5ef522c89f3cc1129203985
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
prima: release v3.2.3.11

	git://codeaurora.org/external/wlan/prima.git

	97b38c1 Revert "wlan: Change regulatory followed customer request"
	8b40611 wlan: Change wlan driver version 3.2.3.10 to 3.2.3.11
	905ce09 wlan: Do not check for mcbc flag to resume.
	41687f0 wlan: Fix race conditions while configuring mc/bc filter

Signed-off-by: Iliyan Malchev <malchev@google.com>
Merge remote-tracking branch 'aosp/android-msm-mako-3.4-kitkat-mr0' into HEAD
rebase geeb (LG Optimus G)on mako
most thanks to dvhexer and as well everyone apart of teamlgog on the rebase
MHL support geeb
Add ifdef around SEKONIX_LENS_ACT specific actuator position in power
down.

Change-Id: Ifc26a78951d3bbf00b0f7fdf4fb44b9ec252f836
Remove imx091 from ifdef for voltage correction

Change-Id: I6e979c412d98c5e7d2eedf0851a36ad2cc8ac461
msm_fb: hdmi: Resolution modes on HDMI

Add a new header file that lists all supported
HDMI resolution modes and the associated timing
information.

Change-Id: I38261abebeb4602dc1d780def6cb23a0e186234f
CRs-Fixed: 470335
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
remove compilation error by changing int to uint32_t
Signed-off-by: Supreet Mysore Suresh <supreet@codeaurora.org>

Change-Id: Ia7de2f4a9eae4cc16f957163683ddf83c135d379
Signed-off-by: Supreet Mysore Suresh <supreet@codeaurora.org>
video: msm: external: Limit HDMI to standard resolutions

The mako can't handle higher resolutions, even if detected, resulting
in errors like the following:

[ 1090.222005] mdp4_dtv_start: <ID=129 3840x2160 (1056,88,296), (8,10,72) 297MHz>
[ 1090.228597] Rate 297000000 for tv_src_clk is greater than highest Fmax

so limit the max resolution to HDMI_VFRMT_1920x1080p100_16_9

Change-Id: I3dcb5f7a49a8413680096b5419c9fa37e9e14587
msm: camera: Fix camera crash in msm_open_config

Add proper check before accessing mctl handle to
avoid camera crash.

Change-Id: I1413f086ab7d94fe223a814bb16867d1dcc0a4bf
CRs-Fixed: 481757
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: Fix camera crash when ctrl_q is empty

Add proper error condition if the list is empty and
return error value to upper layers instead of BUG_ON.

Change-Id: I89237e7a27d5fb1e1fd5f1a8a2dfd7ea9a1afff5
CRs-Fixed: 481759
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: Fix mctl release crash issue.

After mctl release initialize pointer to NULL to
avoid crash.

Change-Id: Ia3e0b1b809f85760a92b5248f402df589c6ace04
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: Enable pixel line buffer for ispif.

Enable pixel line buffer for ispif to handle fast incoming
data. This provides cusion to dowmstream components such as vfe
and helps in preventing UB buffer overflows.

Change-Id: I0c2a0f8241e08d6cf39732db4ee05b34975b1557
Signed-off-by: Nishant Pandit <npandit@codeaurora.org>
Signed-off-by: Praveen Ac <praveenac@codeaurora.org>
msm: camera: Check if client is NULL before calling ion_free

NULL check was added inorder to prevent a target reboot in ion_free
in case client is already NULL

Change-Id: I263f56ff06ad7907c459b4f7254fc1435a41c61d
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
geeb: bring in all my stuff

*Set ondemand as the default CPU governor
*mm: Reduce the min readahead value
*Enable TCP Congestion Control
*SLAB memory allocation as default
*Increase max readahead value
*Tweak the Deadline I/O Scheduler
Set this as default for optimal performance as well.
*fix smux
*Remove any -Wall options to suppress warnings
*defconfig: set localversion
*scripts: remove localversion "+" from kernel version strings
*ASoC: add missing updates from CAF
CAF patch updated board file for 8064 but LGE split the files and the update
was not applied to mako board

Signed-off-by: houst0nn <houstonn@gmail.com>
Actuator workaround
LED changes from ronasimi and Paulicat

Conflicts:
	include/linux/msm_vidc_enc.h
add geehrc gee defconfig (same as geespr)