ext4: fix memory leak in xattr

commit 6e4ea8e33b2057b85d75175dd89b93f5e26de3bc upstream.

If we take the 2nd retry path in ext4_expand_extra_isize_ea, we
potentionally return from the function without having freed these
allocations.  If we don't do the return, we over-write the previous
allocation pointers, so we leak either way.

Spotted with Coverity.

[ Fixed by tytso to set is and bs to NULL after freeing these
  pointers, in case in the retry loop we later end up triggering an
  error causing a jump to cleanup, at which point we could have a double
  free bug. -- Ted ]

Signed-off-by: Dave Jones <davej@fedoraproject.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: spock1104 <spock1104@gmail.com>
added CPU voltage VDD control (thanks to @faux123)

Conflicts:
	arch/arm/mach-msm/Kconfig

Signed-off-by: spock1104 <spock1104@gmail.com>
enable voltage tuning, disable gpu oc, set min clock to 162000 since it works well
set mdecision idle frequency to minimum frequency from config table when available
Staging: initial ZRAM/ZSMALLOC support

Conflicts:
	.gitignore
	drivers/input/touchscreen/sweep2sleep.c
	mods/Kconfig
	security/selinux/ss/policydb.c
Proper zram/zcache/zsmalloc

Conflicts:
	arch/arm/configs/nex_kitkat_defconfig
msm: implement ARCH_RANDOM
Currently, the software random number generator is not intialized
until relatively late in the boot process. Software that relies on
random numbers early will not be reliable. Entropy sources are
available early but not early enough for some use cases which means
that moving the software random number generation earlier is not an
option. As an alternate solution, implement the functions associated
with CONFIG_ARCH_RANDOM. These functions currently make a call into
trustzone to get reliable random numbers. The functions are disabled
once the regular random number generator is sufficiently reliable.

Change-Id: If40cfcb96b091fa26a28047c10a902287b26f6c1
CRs-Fixed: 498392
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>

Conflicts:
	mods/Kconfig
mm: Added filesystem dynamic read-ahead

Conflicts:
	fs/exfat
	fs/f2fs
	include/linux/mm.h
mm: Added filesystem dynamic read-ahead

Fix lines messed up by cherry-pick
Add Intelliactive,Intellidemand, and Lionheart governors

Conflicts:
	drivers/cpufreq/Kconfig
	drivers/cpufreq/cpufreq_wheatley.c
update configs for previous commits
Revert "msm: implement ARCH_RANDOM"

This reverts commit be9188fcb6a55ca028aeaf487e5fa5099bd50931.
zram/zcache/zsmalloc config butterfingers