diff options
| author | 2026-09-24 23:21:13 +0200 | |
|---|---|---|
| committer | 2026-10-02 18:12:44 +1000 | |
| commit | 7e7be8815143751c20260f80cb4e7fe14dd24b74 (patch) | |
| tree | d6869cca5646b98498d5cd2c2b9b8ee819fa1840 /scripts/Makefile.thinlto | |
| parent | rhashtable: specialize default comparison for constant parameters (diff) | |
hwrng: core - reject unknown RNG names
In rng_current_store(), err is 0 after successfully locking rng_mutex,
and if the requested RNG name cannot be found, the function reports
success even though the current RNG was not changed.
Set err = -ENODEV before searching the RNG list to reject unknown names.
Fixes: 142a27f0a731 ("hwrng: core - Reset user selected rng by writing "" to rng_current")
Cc: stable@vger.kernel.org
Signed-off-by: Thorsten Blum <blum@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
