Commit a06df4b0 authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

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: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent ad8cd0d6
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment