Commit a9beab09 authored by Mostafa Saleh's avatar Mostafa Saleh
Browse files

ANDROID: drivers/arm-smmu-v3-kvm: Detach devices on release



When a device is removed from a bus, it calls "release_device"
then frees the device domain if possible.
However, as "kvm_arm_smmu_release_device" doesn't detach the
device from the domain, it's still refcounted and wouldn't be freed.

On release_device, call detach device to decrement the domain refcount
and also puts the device in blocking state.

Bug: 369495618
Change-Id: I91dfdce7ab2ba4b0abc0569b6da081a3456ba2a8
Signed-off-by: default avatarMostafa Saleh <smostafa@google.com>
parent cec79a80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment