greybus: es2: fix debugfs dentry leak
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 4 Nov 2015 17:55:18 +0000 (18:55 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 5 Nov 2015 04:35:18 +0000 (20:35 -0800)
Fix dentry leak due to failure to remove debugfs file.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c

index 75052af70abfb3e127a8d5a28e4e4f968d86b19f..18cfcd6b65786f2f096d9525c6d372ad901e3609 100644 (file)
@@ -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! */