diff options
author | Chen Zhou <chenzhou10@huawei.com> | 2020-05-09 16:56:06 +0800 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2020-06-16 13:44:05 +0200 |
commit | df8cea2a4bef3088c8570af543835992ce1d327e (patch) | |
tree | e768e73b15286a9c829532cc668c723e651ea214 /kernel/rcu | |
parent | 79d6c50227103a9f7df9690b38ff74127f69d3cf (diff) | |
download | linux-stable-df8cea2a4bef3088c8570af543835992ce1d327e.tar.gz linux-stable-df8cea2a4bef3088c8570af543835992ce1d327e.tar.bz2 linux-stable-df8cea2a4bef3088c8570af543835992ce1d327e.zip |
s390/crypto: use scnprintf() instead of snprintf()
snprintf() returns the number of bytes that would be written,
which may be greater than the the actual length to be written.
show() methods should return the number of bytes printed into the
buffer. This is the return value of scnprintf().
Link: https://lkml.kernel.org/r/20200509085608.41061-2-chenzhou10@huawei.com
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'kernel/rcu')
0 files changed, 0 insertions, 0 deletions