diff options
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/f_fs.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/inode.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c index e4f595055208..e093fd8d04d3 100644 --- a/drivers/usb/gadget/f_fs.c +++ b/drivers/usb/gadget/f_fs.c | |||
@@ -980,6 +980,7 @@ ffs_sb_make_inode(struct super_block *sb, void *data, | |||
980 | if (likely(inode)) { | 980 | if (likely(inode)) { |
981 | struct timespec current_time = CURRENT_TIME; | 981 | struct timespec current_time = CURRENT_TIME; |
982 | 982 | ||
983 | inode->i_ino = usbfs_get_inode(); | ||
983 | inode->i_mode = perms->mode; | 984 | inode->i_mode = perms->mode; |
984 | inode->i_uid = perms->uid; | 985 | inode->i_uid = perms->uid; |
985 | inode->i_gid = perms->gid; | 986 | inode->i_gid = perms->gid; |
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c index d1d72d946b04..ba145e7fbe03 100644 --- a/drivers/usb/gadget/inode.c +++ b/drivers/usb/gadget/inode.c | |||
@@ -1991,6 +1991,7 @@ gadgetfs_make_inode (struct super_block *sb, | |||
1991 | struct inode *inode = new_inode (sb); | 1991 | struct inode *inode = new_inode (sb); |
1992 | 1992 | ||
1993 | if (inode) { | 1993 | if (inode) { |
1994 | inode->i_ino = get_next_ino(); | ||
1994 | inode->i_mode = mode; | 1995 | inode->i_mode = mode; |
1995 | inode->i_uid = default_uid; | 1996 | inode->i_uid = default_uid; |
1996 | inode->i_gid = default_gid; | 1997 | inode->i_gid = default_gid; |