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: prng: 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
ba6a98fe 1c0908fc

+2 -2
+2 -2
arch/s390/crypto/prng.c
··· 824 824 825 825 /* check if the CPU has a PRNG */ 826 826 if (!cpacf_query_func(CPACF_KMC, CPACF_KMC_PRNG)) 827 - return -EOPNOTSUPP; 827 + return -ENODEV; 828 828 829 829 /* check if TRNG subfunction is available */ 830 830 if (cpacf_query_func(CPACF_PRNO, CPACF_PRNO_TRNG)) ··· 837 837 if (prng_mode == PRNG_MODE_SHA512) { 838 838 pr_err("The prng module cannot " 839 839 "start in SHA-512 mode\n"); 840 - return -EOPNOTSUPP; 840 + return -ENODEV; 841 841 } 842 842 prng_mode = PRNG_MODE_TDES; 843 843 } else