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
8c08da78
Commit
8c08da78
authored
Oct 27, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix GFP flags for usb audio driver.
parent
ee4c95a2
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 @
8c08da78
...
@@ -914,7 +914,7 @@ static void usbin_completed(struct urb *urb)
...
@@ -914,7 +914,7 @@ static void usbin_completed(struct urb *urb)
if
(
!
usbin_retire_desc
(
u
,
urb
)
&&
if
(
!
usbin_retire_desc
(
u
,
urb
)
&&
u
->
flags
&
FLG_RUNNING
&&
u
->
flags
&
FLG_RUNNING
&&
!
usbin_prepare_desc
(
u
,
urb
)
&&
!
usbin_prepare_desc
(
u
,
urb
)
&&
(
suret
=
usb_submit_urb
(
urb
,
GFP_
KERNEL
))
==
0
)
{
(
suret
=
usb_submit_urb
(
urb
,
GFP_
ATOMIC
))
==
0
)
{
u
->
flags
|=
mask
;
u
->
flags
|=
mask
;
}
else
{
}
else
{
u
->
flags
&=
~
(
mask
|
FLG_RUNNING
);
u
->
flags
&=
~
(
mask
|
FLG_RUNNING
);
...
@@ -980,7 +980,7 @@ static void usbin_sync_completed(struct urb *urb)
...
@@ -980,7 +980,7 @@ static void usbin_sync_completed(struct urb *urb)
if
(
!
usbin_sync_retire_desc
(
u
,
urb
)
&&
if
(
!
usbin_sync_retire_desc
(
u
,
urb
)
&&
u
->
flags
&
FLG_RUNNING
&&
u
->
flags
&
FLG_RUNNING
&&
!
usbin_sync_prepare_desc
(
u
,
urb
)
&&
!
usbin_sync_prepare_desc
(
u
,
urb
)
&&
(
suret
=
usb_submit_urb
(
urb
,
GFP_
KERNEL
))
==
0
)
{
(
suret
=
usb_submit_urb
(
urb
,
GFP_
ATOMIC
))
==
0
)
{
u
->
flags
|=
mask
;
u
->
flags
|=
mask
;
}
else
{
}
else
{
u
->
flags
&=
~
(
mask
|
FLG_RUNNING
);
u
->
flags
&=
~
(
mask
|
FLG_RUNNING
);
...
@@ -1274,7 +1274,7 @@ static void usbout_completed(struct urb *urb)
...
@@ -1274,7 +1274,7 @@ static void usbout_completed(struct urb *urb)
if
(
!
usbout_retire_desc
(
u
,
urb
)
&&
if
(
!
usbout_retire_desc
(
u
,
urb
)
&&
u
->
flags
&
FLG_RUNNING
&&
u
->
flags
&
FLG_RUNNING
&&
!
usbout_prepare_desc
(
u
,
urb
)
&&
!
usbout_prepare_desc
(
u
,
urb
)
&&
(
suret
=
usb_submit_urb
(
urb
,
GFP_
KERNEL
))
==
0
)
{
(
suret
=
usb_submit_urb
(
urb
,
GFP_
ATOMIC
))
==
0
)
{
u
->
flags
|=
mask
;
u
->
flags
|=
mask
;
}
else
{
}
else
{
u
->
flags
&=
~
(
mask
|
FLG_RUNNING
);
u
->
flags
&=
~
(
mask
|
FLG_RUNNING
);
...
@@ -1347,7 +1347,7 @@ static void usbout_sync_completed(struct urb *urb)
...
@@ -1347,7 +1347,7 @@ static void usbout_sync_completed(struct urb *urb)
if
(
!
usbout_sync_retire_desc
(
u
,
urb
)
&&
if
(
!
usbout_sync_retire_desc
(
u
,
urb
)
&&
u
->
flags
&
FLG_RUNNING
&&
u
->
flags
&
FLG_RUNNING
&&
!
usbout_sync_prepare_desc
(
u
,
urb
)
&&
!
usbout_sync_prepare_desc
(
u
,
urb
)
&&
(
suret
=
usb_submit_urb
(
urb
,
GFP_
KERNEL
))
==
0
)
{
(
suret
=
usb_submit_urb
(
urb
,
GFP_
ATOMIC
))
==
0
)
{
u
->
flags
|=
mask
;
u
->
flags
|=
mask
;
}
else
{
}
else
{
u
->
flags
&=
~
(
mask
|
FLG_RUNNING
);
u
->
flags
&=
~
(
mask
|
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