]> asedeno.scripts.mit.edu Git - linux.git/commit
Revert "hwrng: virtio - ensure reads happen after successful probe"
authorAmit Shah <amit.shah@redhat.com>
Sat, 26 Jul 2014 22:05:01 +0000 (07:35 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 27 Jul 2014 11:37:20 +0000 (21:07 +0930)
commiteeec626366ffe558fc3d5685bd2b49a962acf57d
tree3773529c455de40a5c45c194d09c6a72799f752f
parent5c06273401f2eb7b290cadbae18ee00f8f65e893
Revert "hwrng: virtio - ensure reads happen after successful probe"

This reverts commit e052dbf554610e2104c5a7518c4d8374bed701bb.

Now that we use the virtio ->scan() function to register with the hwrng
core, we will not get read requests till probe is successfully finished.

So revert the workaround we had in place to refuse read requests while
we were not yet setup completely.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/hw_random/core.c
drivers/char/hw_random/virtio-rng.c