diff options
| author | Johannes Berg <[email protected]> | 2021-01-07 21:15:21 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2021-01-26 21:11:38 +0000 |
| commit | f4172b084342fd3f9e38c10650ffe19eac30d8ce (patch) | |
| tree | 0ff37342dec431c0ad75dbf4405e1d6fc8943b41 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | um: kmsg_dumper: always dump when not tty console (diff) | |
| download | kernel-f4172b084342fd3f9e38c10650ffe19eac30d8ce.tar.gz kernel-f4172b084342fd3f9e38c10650ffe19eac30d8ce.zip | |
um: virtio: free vu_dev only with the contained struct device
Since struct device is refcounted, we shouldn't free the vu_dev
immediately when it's removed from the platform device, but only
when the references actually all go away. Move the freeing to
the release to accomplish that.
Fixes: 5d38f324993f ("um: drivers: Add virtio vhost-user driver")
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
