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
d612b753
Commit
d612b753
authored
Feb 19, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usb uhci.c:
- added usb_get_urb() and usb_put_urb() logic
parent
cbe22f98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
drivers/usb/uhci.c
drivers/usb/uhci.c
+5
-0
No files found.
drivers/usb/uhci.c
View file @
d612b753
...
...
@@ -1492,6 +1492,9 @@ static int uhci_submit_urb(struct urb *urb, int mem_flags)
return
-
ENODEV
;
}
/* increment the reference count of the urb, as we now also control it */
urb
=
usb_get_urb
(
urb
);
uhci
=
(
struct
uhci
*
)
urb
->
dev
->
bus
->
hcpriv
;
INIT_LIST_HEAD
(
&
urb
->
urb_list
);
...
...
@@ -1505,6 +1508,7 @@ static int uhci_submit_urb(struct urb *urb, int mem_flags)
/* Since we can have problems on the out path */
spin_unlock_irqrestore
(
&
urb
->
lock
,
flags
);
usb_dec_dev_use
(
urb
->
dev
);
usb_put_urb
(
urb
);
return
ret
;
}
...
...
@@ -2299,6 +2303,7 @@ static void uhci_call_completion(struct urb *urb)
/* We decrement the usage count after we're done */
/* with everything */
usb_dec_dev_use
(
dev
);
usb_put_urb
(
urb
);
}
}
}
...
...
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