From: Ingo Molnar Date: Sun, 8 Jan 2012 11:31:24 +0000 (+0100) Subject: Merge branch 'tip/perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/roste... X-Git-Tag: firefly_0821_release~3680^2~3703^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=636f0c70f2557e0819b50c74e31b4a027327015e;p=firefly-linux-kernel-4.4.55.git Merge branch 'tip/perf/urgent' of git://git./linux/kernel/git/rostedt/linux-trace into perf/core --- 636f0c70f2557e0819b50c74e31b4a027327015e diff --cc arch/s390/oprofile/init.c index 6cf2286d0405,bd58b72454cf..2297be406c61 --- a/arch/s390/oprofile/init.c +++ b/arch/s390/oprofile/init.c @@@ -123,12 -88,9 +123,12 @@@ static ssize_t hwsampler_write(struct f return -EINVAL; retval = oprofilefs_ulong_from_user(&val, buf, count); - if (retval) + if (retval <= 0) return retval; + if (val != 0 && val != 1) + return -EINVAL; + if (oprofile_started) /* * save to do without locking as we set