aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorAmos Kong <[email protected]>2014-09-11 22:20:39 +0930
committerRusty Russell <[email protected]>2014-09-11 22:28:34 +0930
commit3856e548372513665670ca5db60d9a74b970fe0d (patch)
tree50bf263fb7a3269e38a58c9177741f356912342b /net/lapb/lapb_iface.c
parent7ec62d421bdf29cb31101ae2689f7f3a9906289a (diff)
virtio-rng: fix stuck of hot-unplugging busy device
When we try to hot-remove a busy virtio-rng device from QEMU monitor, the device can't be hot-removed. Because virtio-rng driver hangs at wait_for_completion_killable(). This patch exits the waiting by completing have_data completion before unregistering, resets data_avail to avoid the hwrng core use wrong buffer bytes. Signed-off-by: Amos Kong <[email protected]> Reviewed-by: Amit Shah <[email protected]> Cc: [email protected] Signed-off-by: Rusty Russell <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions