leds: leds-pm8xxx: use snprintf for sysfs attribute show method

Sysfs attribute show method is passed a buffer of length PAGE_SIZE.
To prevent from overwriting this buffer, replace usage of sprintf()
with snprintf().

Change-Id: I0f12a2e1309940d0971dab1e7a29c9c03424a682
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
mm: fix prctl_set_vma_anon_name

prctl_set_vma_anon_name could attempt to set the name across
two vmas at the same time due to a typo, which might corrupt
the vma list.  Fix it to use tmp instead of end to limit
the name setting to a single vma at a time.

Change-Id: Ie32d8ddb0fd547efbeedd6528acdab5ca5b308b4
Reported-by: Jed Davis <jld@mozilla.com>
Signed-off-by: Colin Cross <ccross@android.com>
f2fs: resync with upstream 3.4 branch (forced update)

Change-Id: I1e7f8893f4330e8084827568327ba5e4eafc684c