diff options
Diffstat (limited to 'drivers/usb/gadget/legacy/inode.c')
-rw-r--r-- | drivers/usb/gadget/legacy/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/legacy/inode.c b/drivers/usb/gadget/legacy/inode.c index 6af58c6dba5e..2030565c6789 100644 --- a/drivers/usb/gadget/legacy/inode.c +++ b/drivers/usb/gadget/legacy/inode.c | |||
@@ -1505,7 +1505,7 @@ static void destroy_ep_files (struct dev_data *dev) | |||
1505 | list_del_init (&ep->epfiles); | 1505 | list_del_init (&ep->epfiles); |
1506 | dentry = ep->dentry; | 1506 | dentry = ep->dentry; |
1507 | ep->dentry = NULL; | 1507 | ep->dentry = NULL; |
1508 | parent = dentry->d_parent->d_inode; | 1508 | parent = d_inode(dentry->d_parent); |
1509 | 1509 | ||
1510 | /* break link to controller */ | 1510 | /* break link to controller */ |
1511 | if (ep->state == STATE_EP_ENABLED) | 1511 | if (ep->state == STATE_EP_ENABLED) |