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

bus: mhi: ep: 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 220d3251
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment