aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_balloon.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-11-10 09:34:29 +1030
committerRusty Russell <rusty@rustcorp.com.au>2014-11-11 17:09:57 +1030
commit46652a861b46cc62e9d983d5cf6d9532cd6fccab (patch)
tree94e9e81bf631f365cc87a3996e615c19b1dd3b83 /drivers/virtio/virtio_balloon.c
parentvirtio: Fix comment typo 'CONFIG_S_FAILED' (diff)
downloadlinux-dev-46652a861b46cc62e9d983d5cf6d9532cd6fccab.tar.xz
linux-dev-46652a861b46cc62e9d983d5cf6d9532cd6fccab.zip
virtio_blk: fix race at module removal
If a device appears while module is being removed, driver will get a callback after we've given up on the major number. In theory this means this major number can get reused by something else, resulting in a conflict. To fix, cleanup in reverse order of initialization. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio/virtio_balloon.c')
0 files changed, 0 insertions, 0 deletions