diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-10-27 17:49:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 16:46:06 +0300 |
commit | 8a0c3bc2cf9e08a6abed982fdeba0e8aca48fbe6 (patch) | |
tree | cd926edac60e26a1a2c7f52795e0a5768c0f91df /include/clocksource | |
parent | e3708b8b2762296d7dde4fcac127c5bfffc3b8e5 (diff) | |
download | linux-8a0c3bc2cf9e08a6abed982fdeba0e8aca48fbe6.tar.xz |
pcrypt: use format specifier in kobject_add
[ Upstream commit b1e3874c75ab15288f573b3532e507c37e8e7656 ]
Passing string 'name' as the format specifier is potentially hazardous
because name could (although very unlikely to) have a format specifier
embedded in it causing issues when parsing the non-existent arguments
to these. Follow best practice by using the "%s" format string for
the string 'name'.
Cleans up clang warning:
crypto/pcrypt.c:397:40: warning: format string is not a string literal
(potentially insecure) [-Wformat-security]
Fixes: a3fb1e330dd2 ("pcrypt: Added sysfs interface to pcrypt")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/clocksource')
0 files changed, 0 insertions, 0 deletions