Merge tag 'backlight-for-linus-4.4' of git://git.kernel.org/pub/scm/linux/kernel...
[firefly-linux-kernel-4.4.55.git] / crypto / asymmetric_keys / signature.c
index 7525fd183574c826b2f85a5f4de3ba47e4c585ab..9441240f7d2a51e746331dc8aa720ae4280685e4 100644 (file)
@@ -37,7 +37,7 @@ int verify_signature(const struct key *key,
                return -EINVAL;
        subtype = asymmetric_key_subtype(key);
        if (!subtype ||
-           !key->payload.data)
+           !key->payload.data[0])
                return -EINVAL;
        if (!subtype->verify_signature)
                return -ENOTSUPP;