]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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)
committerRobert Richter <robert.richter@amd.com>
Mon, 27 Aug 2012 12:49:23 +0000 (14:49 +0200)
commit81ff3478d9ba7f0b48b0abef740e542fd83adf79
tree46e7dcdba46426a298893946664003fe44d5bda3
parentfea7a08acb13524b47711625eebea40a0ede69a0
oprofile, s390: Fix uninitialized memory access when writing to oprofilefs

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

Cc: stable@vger.kernel.org # 3.3+
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/s390/oprofile/init.c