]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/diag: fix display of diagnose call statistics
authorMichael Mueller <mimu@linux.ibm.com>
Tue, 3 Mar 2020 15:42:01 +0000 (16:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 14:12:16 +0000 (16:12 +0200)
commitf283e85d8480af3d75f6bd0060631562d2615937
tree991beb6ceb786c4b6d03879815d68d1cb9faa11e
parentcd123408b0b0895a969c59aab6da074884fbb617
s390/diag: fix display of diagnose call statistics

commit 6c7c851f1b666a8a455678a0b480b9162de86052 upstream.

Show the full diag statistic table and not just parts of it.

The issue surfaced in a KVM guest with a number of vcpus
defined smaller than NR_DIAG_STAT.

Fixes: 1ec2772e0c3c ("s390/diag: add a statistic for diagnose calls")
Cc: stable@vger.kernel.org
Signed-off-by: Michael Mueller <mimu@linux.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kernel/diag.c