greybus: es1: fix debugfs dentry leak
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 4 Nov 2015 17:55:19 +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/es1.c

index ddca5f9ba74cfda10cb741d333fc3c335268690d..30477690e54e07e07581ce76e94f706bdd8b4ca4 100644 (file)
@@ -372,6 +372,7 @@ static void ap_disconnect(struct usb_interface *interface)
        for (i = 0; i < NUM_CPORT_IN_URB; ++i)
                usb_kill_urb(es1->cport_in_urb[i]);
 
+       debugfs_remove(apb1_log_enable_dentry);
        usb_log_disable(es1);
 
        /* Tear down everything! */