From: Johan Hovold Date: Wed, 4 Nov 2015 17:55:18 +0000 (+0100) Subject: greybus: es2: fix debugfs dentry leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74cd6503e5d4f01146dc18eb28d8fa3976914995;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: es2: fix debugfs dentry leak Fix dentry leak due to failure to remove debugfs file. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index 75052af70abf..18cfcd6b6578 100644 --- a/drivers/staging/greybus/es2.c +++ b/drivers/staging/greybus/es2.c @@ -562,6 +562,7 @@ static void ap_disconnect(struct usb_interface *interface) for (i = 0; i < NUM_BULKS; ++i) es2_cport_in_disable(es2, &es2->cport_in[i]); + debugfs_remove(es2->apb_log_enable_dentry); usb_log_disable(es2); /* Tear down everything! */