summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-12-20 20:41:17 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-12-20 20:41:17 +0100
commita205b082189bf914959a667a5c83ea145bba3fb5 (patch)
tree8e4a05c7eebe9039136d2880e64dc782b73a1c1a /arch
parentMerge branch 'stable/for-linus-fixes-3.2' of git://git.kernel.org/pub/scm/lin... (diff)
parentoprofile: Fix uninitialized memory access when writing to writing to oprofilefs (diff)
downloadlinux-a205b082189bf914959a667a5c83ea145bba3fb5.tar.xz
linux-a205b082189bf914959a667a5c83ea145bba3fb5.zip
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: oprofile: Fix uninitialized memory access when writing to writing to oprofilefs
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/oprofile/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/oprofile/init.c b/arch/s390/oprofile/init.c
index 6efc18b5e60a..bd58b72454cf 100644
--- a/arch/s390/oprofile/init.c
+++ b/arch/s390/oprofile/init.c
@@ -88,7 +88,7 @@ static ssize_t hwsampler_write(struct file *file, char const __user *buf,
return -EINVAL;
retval = oprofilefs_ulong_from_user(&val, buf, count);
- if (retval)
+ if (retval <= 0)
return retval;
if (oprofile_started)