summaryrefslogtreecommitdiffstats
path: root/drivers/s390/crypto
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-06-10 10:46:20 -0700
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-06-11 10:13:27 +0200
commitef283688f54cc87c421f2a05ddf75fded6f4ad86 (patch)
tree72e9ddb03c73368bfe3fa219997da51d3ad56e0e /drivers/s390/crypto
parent0eb69a0c584d0eaec6c2b6663e03184625c3517b (diff)
downloadlinux-ef283688f54cc87c421f2a05ddf75fded6f4ad86.tar.gz
linux-ef283688f54cc87c421f2a05ddf75fded6f4ad86.tar.bz2
linux-ef283688f54cc87c421f2a05ddf75fded6f4ad86.zip
s390: avoid format strings leaking into names
This makes sure format strings can't accidentally leak into kernel interface names. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/crypto')
-rw-r--r--drivers/s390/crypto/zcrypt_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/crypto/zcrypt_api.c b/drivers/s390/crypto/zcrypt_api.c
index 5222ebe15705..0e18c5dcd91f 100644
--- a/drivers/s390/crypto/zcrypt_api.c
+++ b/drivers/s390/crypto/zcrypt_api.c
@@ -356,7 +356,7 @@ struct zcrypt_ops *zcrypt_msgtype_request(unsigned char *name, int variant)
zops = __ops_lookup(name, variant);
if (!zops) {
- request_module(name);
+ request_module("%s", name);
zops = __ops_lookup(name, variant);
}
if ((!zops) || (!try_module_get(zops->owner)))