Skip to content

Commit

Permalink
drm/virtgpu: fix double unregistration
Browse files Browse the repository at this point in the history
drm_put_dev also calls drm_dev_unregister, so dev will be unregistered
twice.
Replace it with drm_dev_put to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191109075417.29808-1-hslester96@gmail.com
  • Loading branch information
Chuhong Yuan authored and Daniel Vetter committed Nov 12, 2019
1 parent f8fbe33 commit c8f95a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/virtio/virtgpu_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static void virtio_gpu_remove(struct virtio_device *vdev)

drm_dev_unregister(dev);
virtio_gpu_deinit(dev);
drm_put_dev(dev);
drm_dev_put(dev);
}

static void virtio_gpu_config_changed(struct virtio_device *vdev)
Expand Down

0 comments on commit c8f95a5

Please sign in to comment.