From: Amos Kong Date: Thu, 11 Sep 2014 12:51:53 +0000 (+0930) Subject: virtio-rng: skip reading when we start to remove the device X-Git-Tag: fixes-for-v3.18-merge-window~115^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f49819560f53b7f3a596a8ea2e6764dc86695b62;p=pandora-kernel.git virtio-rng: skip reading when we start to remove the device Before we really unregister the hwrng device, reading will get stuck if the virtio device is reset. We should return error for reading when we start to remove the device. Signed-off-by: Amos Kong Reviewed-by: Amit Shah Cc: stable@vger.kernel.org Signed-off-by: Rusty Russell --- Reading git-diff-tree failed