hwrng: amd - release_region must be called after hwrng_unregister
authorCorentin LABBE <clabbe.montjoie@gmail.com>
Fri, 26 Aug 2016 11:11:33 +0000 (13:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 31 Aug 2016 15:00:45 +0000 (23:00 +0800)
commitfdec60d683568c8e79457c106fa6642ca7ae95f3
tree2ba14cbed6c5f24686fdae9112b51fa2f15f5e2d
parent055ae890388ad2b02a53d5c3e1f60f976989e34e
hwrng: amd - release_region must be called after hwrng_unregister

The driver release the memory region before being sure that nobody use
it.

This patch made hwrng_unregister ran before any release was done.

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/amd-rng.c