summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2021-01-07 22:15:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-02-10 09:25:27 +0100
commit98650c3d0e33726292dc8fb3b23e129c68c88108 (patch)
tree419903d58f9e375387a01942445163b889c0f8fd /net/lapb/lapb_out.c
parent02531b5549ebf39d6f3c0602f083901211149355 (diff)
um: virtio: free vu_dev only with the contained struct device
[ Upstream commit f4172b084342fd3f9e38c10650ffe19eac30d8ce ] 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 <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions