s390/crypto: ghash: Use -ENODEV instead of -EOPNOTSUPP
authorDavid Hildenbrand <david@redhat.com>
Wed, 12 Jun 2019 13:33:04 +0000 (15:33 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 15 Jun 2019 10:24:40 +0000 (12:24 +0200)
Let's use the error value that is typically used if HW support is not
available when trying to load a module - this is also what systemd's
systemd-modules-load.service expects.

Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/crypto/ghash_s390.c

index 86aed30fad3a4e98352b52ae2a1a7eee4da58c77..eeeb6a7737a4ae41634ccb55578e23537288937c 100644 (file)
@@ -137,7 +137,7 @@ static struct shash_alg ghash_alg = {
 static int __init ghash_mod_init(void)
 {
        if (!cpacf_query_func(CPACF_KIMD, CPACF_KIMD_GHASH))
-               return -EOPNOTSUPP;
+               return -ENODEV;
 
        return crypto_register_shash(&ghash_alg);
 }