ping: prevent NULL pointer dereference on write to msg_name

A plain read() on a socket does set msg->msg_name to NULL. So check for
NULL pointer first.

[Backport of net-next cf970c002d270c36202bd5b9c2804d3097a52da0]

Bug: 12780426
Change-Id: I29d9cb95ef05ec76d37517e01317f4a29e60931c
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
nf: xt_qtaguid: fix handling for cases where tunnels are used.

* fix skb->dev vs par->in/out
When there is some forwarding going on, it introduces extra state
around devs associated with xt_action_param->in/out and sk_buff->dev.
E.g.
   par->in and par->out are both set, or
   skb->dev and par->out are both set (and different)
This would lead qtaguid to make the wrong assumption about the
direction and update the wrong device stats.
Now we rely more on par->in/out.

* Fix handling when qtaguid is used as "owner"
When qtaguid is used as an owner module, and sk_socket->file is
not there (happens when tunnels are involved), it would
incorrectly do a tag stats update.

* Correct debug messages.

Bug: 11687690
Change-Id: I2b1ff8bd7131969ce9e25f8291d83a6280b3ba7f
Signed-off-by: JP Abgrall <jpa@google.com>
(cherry picked from commit 2b71479d6f5fe8f33b335f713380f72037244395)
Update toolchain
Merge remote-tracking branch 'aosp-common/android-3.0' into 2x-aries-cm-11.0
Implement both BLN and CM led

Conflicts:

	arch/arm/configs/semaphore_captivate_defconfig
	arch/arm/configs/semaphore_galaxys_defconfig
	arch/arm/configs/semaphore_vibrant_defconfig
	drivers/input/keyboard/cypress-touchkey.c
	drivers/misc/Kconfig
	drivers/misc/Makefile
Fast charge support

Thanks to Chad Froebel

Conflicts:

	arch/arm/mach-s5pv210/Makefile
Fast charge built-in, fix issues when toggle

Conflicts:

	arch/arm/configs/semaphore_captivate_defconfig
	arch/arm/configs/semaphore_galaxys_defconfig
	arch/arm/configs/semaphore_vibrant_defconfig