]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: core - Reset user selected rng by writing "" to rng_current
authorPrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Fri, 27 Oct 2017 17:04:04 +0000 (22:34 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Nov 2017 14:11:25 +0000 (22:11 +0800)
commit2f7d45a378bcc4464f326a0a475dc86d56d04489
tree2fe8b7a914a8df36ff02314e699910ed4d275885
parent89e7d2853d46d4259b8f6728cdc16ddbd393c37d
hwrng: core - Reset user selected rng by writing "" to rng_current

User is able to select a chosen rng by writing its name to rng_current
but there is no way to reset it without unbinding the rng. Let user
write "" to rng_current and delesect the chosen rng.

Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
reviewed-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/core.c