diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2015-02-09 14:54:16 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-02-10 12:15:57 +0300 |
commit | 45cce4ccafe3cddc924ef5221d22b9853fc9a13c (patch) | |
tree | 3afaaeec8ecc47be92aa209b715c84522ff9c1f5 /arch/s390/hypfs/hypfs_diag0c.c | |
parent | ea96f78813823ab186e7e52122c06fb9c3cf6e20 (diff) | |
download | linux-45cce4ccafe3cddc924ef5221d22b9853fc9a13c.tar.xz |
s390/cacheinfo: don't use smp_processor_id() in preemptible context
show_cacheinfo() needs to access the cacheinfo structure of any online
cpu. This was done with using smp_processor_id() as in index while in
preemtible context.
This means the cpu could be offline and the data be gone when it would
be accessed.
Better use any online cpu address and protect the data by get_online_cpus()
and put_online_cpus().
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/hypfs/hypfs_diag0c.c')
0 files changed, 0 insertions, 0 deletions