mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
greybus: unlock hd mutex on free
When free_hd() is called, hd_mutex is held. It is the responsibility of free_hd() to drop that mutex. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
parent
ad8cd0d643
commit
a06df4b08c
1 changed files with 1 additions and 0 deletions
|
|
@ -294,6 +294,7 @@ static void free_hd(struct kref *kref)
|
|||
hd = container_of(kref, struct greybus_host_device, kref);
|
||||
|
||||
kfree(hd);
|
||||
mutex_unlock(&hd_mutex);
|
||||
}
|
||||
|
||||
struct greybus_host_device *greybus_create_hd(struct greybus_host_driver *driver,
|
||||
|
|
|
|||
Loading…
Reference in a new issue