Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

s390/crypto: ghash: Use -ENODEV instead of -EOPNOTSUPP

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>

authored by

David Hildenbrand and committed by
Heiko Carstens
1c0908fc 58443b67

+1 -1
+1 -1
arch/s390/crypto/ghash_s390.c
··· 137 137 static int __init ghash_mod_init(void) 138 138 { 139 139 if (!cpacf_query_func(CPACF_KIMD, CPACF_KIMD_GHASH)) 140 - return -EOPNOTSUPP; 140 + return -ENODEV; 141 141 142 142 return crypto_register_shash(&ghash_alg); 143 143 }