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
90251935
Commit
90251935
authored
Jan 11, 2003
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Jan 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB audio: using GFP_KERNEL with a spinlock held
- with a spinlock held GFP_ATOMIC must be used
parent
32f4b159
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/usb/class/audio.c
drivers/usb/class/audio.c
+4
-4
No files found.
drivers/usb/class/audio.c
View file @
90251935
...
...
@@ -1420,7 +1420,7 @@ static int usbout_start(struct usb_audiodev *as)
urb
->
number_of_packets
=
DESCFRAMES
;
urb
->
context
=
as
;
urb
->
complete
=
usbout_completed
;
if
(
!
usbout_prepare_desc
(
u
,
urb
)
&&
!
usb_submit_urb
(
urb
,
GFP_
KERNEL
))
if
(
!
usbout_prepare_desc
(
u
,
urb
)
&&
!
usb_submit_urb
(
urb
,
GFP_
ATOMIC
))
u
->
flags
|=
FLG_URB0RUNNING
;
else
u
->
flags
&=
~
FLG_RUNNING
;
...
...
@@ -1433,7 +1433,7 @@ static int usbout_start(struct usb_audiodev *as)
urb
->
number_of_packets
=
DESCFRAMES
;
urb
->
context
=
as
;
urb
->
complete
=
usbout_completed
;
if
(
!
usbout_prepare_desc
(
u
,
urb
)
&&
!
usb_submit_urb
(
urb
,
GFP_
KERNEL
))
if
(
!
usbout_prepare_desc
(
u
,
urb
)
&&
!
usb_submit_urb
(
urb
,
GFP_
ATOMIC
))
u
->
flags
|=
FLG_URB1RUNNING
;
else
u
->
flags
&=
~
FLG_RUNNING
;
...
...
@@ -1448,7 +1448,7 @@ static int usbout_start(struct usb_audiodev *as)
urb
->
context
=
as
;
urb
->
complete
=
usbout_sync_completed
;
/* stride: u->syncinterval */
if
(
!
usbout_sync_prepare_desc
(
u
,
urb
)
&&
!
usb_submit_urb
(
urb
,
GFP_
KERNEL
))
if
(
!
usbout_sync_prepare_desc
(
u
,
urb
)
&&
!
usb_submit_urb
(
urb
,
GFP_
ATOMIC
))
u
->
flags
|=
FLG_SYNC0RUNNING
;
else
u
->
flags
&=
~
FLG_RUNNING
;
...
...
@@ -1462,7 +1462,7 @@ static int usbout_start(struct usb_audiodev *as)
urb
->
context
=
as
;
urb
->
complete
=
usbout_sync_completed
;
/* stride: u->syncinterval */
if
(
!
usbout_sync_prepare_desc
(
u
,
urb
)
&&
!
usb_submit_urb
(
urb
,
GFP_
KERNEL
))
if
(
!
usbout_sync_prepare_desc
(
u
,
urb
)
&&
!
usb_submit_urb
(
urb
,
GFP_
ATOMIC
))
u
->
flags
|=
FLG_SYNC1RUNNING
;
else
u
->
flags
&=
~
FLG_RUNNING
;
...
...
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