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
e18933e8
Commit
e18933e8
authored
Oct 15, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: gadget fixes for 64bit processor warnings.
parent
a2ec0df5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/usb/gadget/inode.c
drivers/usb/gadget/inode.c
+2
-2
No files found.
drivers/usb/gadget/inode.c
View file @
e18933e8
...
@@ -812,7 +812,7 @@ ep0_read (struct file *fd, char *buf, size_t len, loff_t *ptr)
...
@@ -812,7 +812,7 @@ ep0_read (struct file *fd, char *buf, size_t len, loff_t *ptr)
if
(
dev
->
setup_out_error
)
if
(
dev
->
setup_out_error
)
retval
=
-
EIO
;
retval
=
-
EIO
;
else
{
else
{
len
=
min
(
len
,
dev
->
req
->
actual
);
len
=
min
(
len
,
(
size_t
)
dev
->
req
->
actual
);
// FIXME don't call this with the spinlock held ...
// FIXME don't call this with the spinlock held ...
if
(
copy_to_user
(
buf
,
&
dev
->
req
->
buf
,
len
))
if
(
copy_to_user
(
buf
,
&
dev
->
req
->
buf
,
len
))
retval
=
-
EFAULT
;
retval
=
-
EFAULT
;
...
@@ -1670,7 +1670,7 @@ dev_config (struct file *fd, const char *buf, size_t len, loff_t *ptr)
...
@@ -1670,7 +1670,7 @@ dev_config (struct file *fd, const char *buf, size_t len, loff_t *ptr)
fail:
fail:
spin_unlock_irq
(
&
dev
->
lock
);
spin_unlock_irq
(
&
dev
->
lock
);
pr_debug
(
"%s: %s fail %d, %p
\n
"
,
shortname
,
__FUNCTION__
,
value
,
dev
);
pr_debug
(
"%s: %s fail %
Z
d, %p
\n
"
,
shortname
,
__FUNCTION__
,
value
,
dev
);
kfree
(
dev
->
buf
);
kfree
(
dev
->
buf
);
dev
->
buf
=
0
;
dev
->
buf
=
0
;
return
value
;
return
value
;
...
...
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