crypto: user - fix empty string test in report API
[firefly-linux-kernel-4.4.55.git] / crypto / crypto_user.c
index f6d9baf77f0a41b76b0fc39aebf26365a1284bca..423a267022f4acc6e7d6db6736341b80153595e9 100644 (file)
@@ -196,7 +196,7 @@ static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh,
        struct crypto_dump_info info;
        int err;
 
-       if (!p->cru_driver_name)
+       if (!p->cru_driver_name[0])
                return -EINVAL;
 
        alg = crypto_alg_match(p, 1);