Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
08d65cfe
Commit
08d65cfe
authored
Dec 08, 2004
by
Greg Kroah-Hartman
Committed by
Linus Torvalds
Dec 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: fix another sparse warning in the USB core
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
4d5f0742
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/usb/core/inode.c
drivers/usb/core/inode.c
+1
-1
No files found.
drivers/usb/core/inode.c
View file @
08d65cfe
...
...
@@ -695,7 +695,7 @@ void usbfs_add_device(struct usb_device *dev)
for
(
i
=
0
;
i
<
dev
->
descriptor
.
bNumConfigurations
;
++
i
)
{
struct
usb_config_descriptor
*
config
=
(
struct
usb_config_descriptor
*
)
dev
->
rawdescriptors
[
i
];
i_size
+=
le16_to_cpu
(
config
->
wTotalLength
);
i_size
+=
le16_to_cpu
(
(
__force
__le16
)
config
->
wTotalLength
);
}
if
(
dev
->
usbfs_dentry
->
d_inode
)
dev
->
usbfs_dentry
->
d_inode
->
i_size
=
i_size
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment