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:
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Loading
Please sign in to comment