Revert "Merge branch 'kb-stable' of git://github.com/Mustaavalkosta/KangBanged-7x30 into kb-stable"

This reverts commit ca746b9c3237efa5ea0406cad2cf674ad04187ca, reversing
changes made to 0dc52334e0267e635718283760e5d5342253866c.

Conflicts:
	arch/arm/configs/kangbang_defconfig
	arch/arm/configs/kangbang_perf_defconfig
ipc/shm.c: fix shm_fsync arguments
update kangbang_defconfig with PPTP support and change CROSS_COMPILE path

Conflicts:
	arch/arm/configs/kangbang_defconfig
USB: gadget: Kconfig: Change Max VBUS power usage default value

Currently the VBUS Max power usage is set to default value of 2.
Change this value to default of 500 to honour the code that uses
CONFIG_USB_GADGET_VBUS_DRAW to set the bMaxPower.

Change-Id: If27b422c23ad2a010744f9660cc0b376d02649df
Signed-off-by: Chiranjeevi Velempati <cvelempa@codeaurora.org>
kernel/sys.c: fix stack memory content leak via UNAME26

Calling uname() with the UNAME26 personality set allows a leak of kernel
stack contents.  This fixes it by defensively calculating the length of
copy_to_user() call, making the len argument unsigned, and initializing
the stack buffer to zero (now technically unneeded, but hey, overkill).

CVE-2012-0957

Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: PaX Team <pageexec@freemail.hu>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Conflicts:
	kernel/sys.c
slub: fix a possible memory leak

Memory allocated by kstrdup should be freed,
when kmalloc(kmem_size, GFP_KERNEL) is failed.

Change-Id: Ic15409e7025cc5e69772f06d19dfa99aeae80a04
Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Joonsoo Kim <js1304@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
Revert "cpufreq: interactive: few tweaks"

This reverts commit 79aa8f25c78a06adf228a37f417cd69b90be1194.

Tweaked in Power HAL instead.
Revert "cpufreq: interactive: use stock boostpulse duration mechanism"

This reverts commit c3cd3db13bf1b56a1c4ff8457c35766d330429a6.
cpufreq: interactive: Respect boost value again
genlock: Add minor changes left before
drivers/power: fix ds2746_battery to send proper signals for charging indicator

Big thanks to @paulb-nl for his help to figure this out.

Based on: https://github.com/Flemmard/htc7x30-3.0/commit/04d19ecf1c7a3766012ff479ae48e45e24c841ec
ds2746_battery: charger is out, not in
qdsp5v2: Remove the log spam