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
nexedi
linux
Commits
3db8f6ff
Commit
3db8f6ff
authored
Jun 09, 2002
by
Brad Hards
Committed by
David S. Miller
Jun 09, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB Checker missing unlocks fixes
parent
8ed75a58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
drivers/usb/core/devices.c
drivers/usb/core/devices.c
+3
-1
drivers/usb/media/dabusb.c
drivers/usb/media/dabusb.c
+1
-0
No files found.
drivers/usb/core/devices.c
View file @
3db8f6ff
...
...
@@ -574,8 +574,10 @@ static ssize_t usb_device_read(struct file *file, char *buf, size_t nbytes, loff
bus
=
list_entry
(
buslist
,
struct
usb_bus
,
bus_list
);
/* recurse through all children of the root hub */
ret
=
usb_device_dump
(
&
buf
,
&
nbytes
,
&
skip_bytes
,
ppos
,
bus
->
root_hub
,
bus
,
0
,
0
,
0
);
if
(
ret
<
0
)
if
(
ret
<
0
)
{
up
(
&
usb_bus_list_lock
);
return
ret
;
}
total_written
+=
ret
;
}
up
(
&
usb_bus_list_lock
);
...
...
drivers/usb/media/dabusb.c
View file @
3db8f6ff
...
...
@@ -609,6 +609,7 @@ static int dabusb_open (struct inode *inode, struct file *file)
down
(
&
s
->
mutex
);
}
if
(
usb_set_interface
(
s
->
usbdev
,
_DABUSB_IF
,
1
)
<
0
)
{
up
(
&
s
->
mutex
);
err
(
"set_interface failed"
);
return
-
EINVAL
;
}
...
...
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