Handle 'sk' being NULL in UID-based routing.

Bug: 15413527
Change-Id: If33bebb7b52c0ebfa8dac2452607bce0c2b0faa0
Signed-off-by: Sreeram Ramachandran <sreeram@google.com>
nl80211: nl80211hdr_put() doesn't return an ERR_PTR

There are a few places which check nl80211hdr_put() for an ERR_PTR
but actually it returns NULL on error and never error values.  In
nl80211_testmode_dump() the return wasn't checked at all so I have
added one.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[some whitespace changes]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: cb35fba360dfc3496e5d8a47e23ec5ccdfd90925
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: I5da1aafea35110a1ce606d402b1b96859d34b869
[akholaif@codeaurora.org: resolved conflicts manually]
Signed-off-by: Ahmad Kholaif <akholaif@codeaurora.org>
nl80211: fix error path in nl80211_get_key()

Coverity pointed out that in the (practically impossible)
error case we leak the message - fix this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: 9fe271af7d4de96471c5aaee2f4d0d1576050497
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: I78c3631eabd04e86872faf65fa1e401dadb35a75
Signed-off-by: Ahmad Kholaif <akholaif@codeaurora.org>
qt602240_ts: add additional mutex protection

Change-Id: I174920431e0eaba2b59dda78e478af228affb9d7
msm8660: add additional locking protection to touckey driver

Change-Id: Ic00b8c37ce445f933981d41c727403e6ae9f5cbd
cypress-touchkey: Remove mutex locks from touch_led_control()

On some devices these new mutex locks are locking onto null pointers, causing a subsequent kernel crash.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Change CPU-boost framework to CPU Input Boost

Most, if not all of the cases where the CPU-boost framework was useful are obsolete when input boosting is used, so remove the cpu_boost_timeout() API and make this driver handle only input boosting.

Change-Id: Ia66ab2dd67a78978f434a6d44aadc144bb98739f
Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_input_boost: Add keypad boosting

Thanks to CAF for this mode.
cpu_input_boost: Add suspend/resume handler

Input boosting can be triggered while the device is suspended (ex. via the volume buttons), causing some nasty kernel warnings.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_input_boost: Don't use boost in hardirq context

This can lead to deadlocking during suspend/resume sequence because we are using timer-based boosts.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_input_boost: Make it fancy

*Driver now runs in its own high-priority workqueue
*Improved hardirq context check (now it blocks boosts much less)
*Defined boost_policy as per cpu
*Added delay in-between boost requests (thanks to CAF)
*Overall code is much cleaner and more robust

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_input_boost: Add maxfreq check for offline CPUs

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_input_boost: Only cancel delayed work once

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_input_boost: Make it even fancier

*Work is declared for each CPU
*Split boost and restore work
*Removed hardirq context check
*Removed redundant checks

Now cpu_input_boost is ready for individual variable CPU boosting.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
cpu_input_boost: Add cpufreq notifier and make it super fancy

*Everything is much cleaner
*Boosting is far less expensive now
*Now completely self-sufficient (doesn't require code to be added to other drivers)

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Update CPU-boost hooks

Removed deprecated hooks.

Change-Id: Iee8f8ef36e288c7ccc0a9a2ddcb49cee40b23a7e
Signed-off-by: Sultanxda <sultanxda@gmail.com>
herc/sky: enable CPU Input Boost

Change-Id: I4400ad14bf3cfc78501f69ad4c9f60f6ac736595
Revert "msm: mdp: Disable early suspend locally"

This reverts commit 88e697f145183c012f3e2e97f1b22ff52627f4bf.
Revert "msm: mdp: Disable early suspend only for the MDP driver"

This reverts commit d77d1e054697060b8fe487571c5d9d3649b86c95.
msm_fb: Fix SoD caused by earlysuspend resume race

Instead of relying on userspace to set fb unblank and praying that everything resumes from sleep correctly, set unblank soley from the earlysuspend resume function. This ensures that the resume sequence is always timed correctly.

Signed-off-by: Sultanxda <sultanxda@gmail.com>