aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/keys/trusted_defined.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/keys/trusted_defined.c b/security/keys/trusted_defined.c
index 7b2179589063..f7d06776faf0 100644
--- a/security/keys/trusted_defined.c
+++ b/security/keys/trusted_defined.c
@@ -148,6 +148,11 @@ static int TSS_authhmac(unsigned char *digest, const unsigned char *key,
148 if (dlen == 0) 148 if (dlen == 0)
149 break; 149 break;
150 data = va_arg(argp, unsigned char *); 150 data = va_arg(argp, unsigned char *);
151 if (!data) {
152 ret = -EINVAL;
153 va_end(argp);
154 goto out;
155 }
151 ret = crypto_shash_update(&sdesc->shash, data, dlen); 156 ret = crypto_shash_update(&sdesc->shash, data, dlen);
152 if (ret < 0) { 157 if (ret < 0) {
153 va_end(argp); 158 va_end(argp);