From 5202910672344f63f65a2bcdf0b04db915334f96 Mon Sep 17 00:00:00 2001 From: thatguydennis Date: Sun, 8 Dec 2019 18:54:27 +0100 Subject: [PATCH] Fixed compilation error This error has been fixed in the default branch of this repository, but not this branch. --- security/keys/encrypted-keys/encrypted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/keys/encrypted-keys/encrypted.c b/security/keys/encrypted-keys/encrypted.c index 220c2cf7bd42..45d5c5926d03 100644 --- a/security/keys/encrypted-keys/encrypted.c +++ b/security/keys/encrypted-keys/encrypted.c @@ -847,7 +847,7 @@ static int encrypted_update(struct key *key, struct key_preparsed_payload *prep) if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) return -ENOKEY; - if (datalen <= 0 || datalen > 32767 || !data) + if (datalen <= 0 || datalen > 32767 || !prep->data) return -EINVAL; buf = kmalloc(datalen + 1, GFP_KERNEL);