s390/cpum_sf: Ignore lsctl() return code in sf_disable()
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 8 Aug 2024 08:58:56 +0000 (10:58 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 21 Aug 2024 14:17:01 +0000 (16:17 +0200)
commit742a7557164bbde9f3263aeebc581fb985fe7dbc
treeefc2448681365329c344cecf42340e0f7c2d4225
parent073ef6b2041075e08c780db34f67e6daf884c9f8
s390/cpum_sf: Ignore lsctl() return code in sf_disable()

sf_disable() returns the condition code of instruction lsctl (load
sampling controls). However the parameter to lsctl() in
sf_disable() is a sample control block containing
all zeroes. This invocation of lsctl() does not fail and returns
always zero even when there is no authorization for sampling
on the machine. In short, sampling can be always turned off.
Ignore the return code of sf_disable() and change the function
return to void.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/perf_cpum_sf.c