From a06df4b08cee2cd201b3cbb7ee8312ea68cc2047 Mon Sep 17 00:00:00 2001 From: Alex Elder Date: Thu, 16 Oct 2014 06:35:26 -0500 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index 6c4107e20762..67628719f8d1 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -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, -- 2.39.2