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

bus: mhi: host: set devices to NULL in mhi_destroy_device



The driver sets per-channel device pointers to NULL only in the release
callback. However this does not seem correct. After the put_device() is
called, the pointer is dangling, so it's better to set it to NULL right
on the spot.

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