mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 14:42:34 -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:
committed by
Greg Kroah-Hartman
parent
ad8cd0d643
commit
a06df4b08c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user