Commit 3d05f940 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Vladimir Zapolskiy
Browse files

bus: mhi: host: set mhi_cntrl->mhi_dev to NULL when unregistering the device



Reset mhi_cntrl->mhi_dev to NULL after calling put_device. This ensures
that there are no dangling pointers.

Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent 587b88f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment