]> git.karo-electronics.de Git - karo-tx-linux.git/commit
oprofile, s390: Fix uninitialized memory access when writing to oprofilefs
authorRobert Richter <robert.richter@amd.com>
Thu, 19 Jul 2012 16:28:26 +0000 (18:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:09 +0000 (10:39 -0700)
commit032fe3671c1efa8218ea28f145b62c16ad720960
treecaebc026c1d126e56ac806e8cdc99c80e4e08a25
parente3b569c5ff1573af7db3ea362e67e5d24ac97344
oprofile, s390: Fix uninitialized memory access when writing to oprofilefs

commit 81ff3478d9ba7f0b48b0abef740e542fd83adf79 upstream.

If oprofilefs_ulong_from_user() is called with count equals zero, *val
remains unchanged. Depending on the implementation it might be
uninitialized. Fixing users of oprofilefs_ulong_ from_user().

We missed these s390 changes with:

 913050b oprofile: Fix uninitialized memory access when writing to writing to oprofilefs

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/oprofile/init.c