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
71fb2788
Commit
71fb2788
authored
Apr 09, 2002
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Apr 09, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] catc: GFP_KERNEL in interrupt or with spinlocks held
bad usage of mem_flags in catc.
parent
2beb6488
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/usb/net/catc.c
drivers/usb/net/catc.c
+3
-3
No files found.
drivers/usb/net/catc.c
View file @
71fb2788
...
...
@@ -278,7 +278,7 @@ static void catc_rx_done(struct urb *urb)
atomic_dec
(
&
catc
->
recq_sz
);
dbg
(
"getting extra packet"
);
urb
->
dev
=
catc
->
usbdev
;
if
((
status
=
usb_submit_urb
(
urb
,
GFP_
KERNEL
))
<
0
)
{
if
((
status
=
usb_submit_urb
(
urb
,
GFP_
ATOMIC
))
<
0
)
{
dbg
(
"submit(rx_urb) status %d"
,
status
);
}
}
else
{
...
...
@@ -329,7 +329,7 @@ static void catc_irq_done(struct urb *urb)
atomic_inc
(
&
catc
->
recq_sz
);
}
else
{
catc
->
rx_urb
->
dev
=
catc
->
usbdev
;
if
((
status
=
usb_submit_urb
(
catc
->
rx_urb
,
GFP_
KERNEL
))
<
0
)
{
if
((
status
=
usb_submit_urb
(
catc
->
rx_urb
,
GFP_
ATOMIC
))
<
0
)
{
err
(
"submit(rx_urb) status %d"
,
status
);
}
}
...
...
@@ -351,7 +351,7 @@ static void catc_tx_run(struct catc *catc)
catc
->
tx_urb
->
transfer_buffer
=
catc
->
tx_buf
[
catc
->
tx_idx
];
catc
->
tx_urb
->
dev
=
catc
->
usbdev
;
if
((
status
=
usb_submit_urb
(
catc
->
tx_urb
,
GFP_
KERNEL
))
<
0
)
if
((
status
=
usb_submit_urb
(
catc
->
tx_urb
,
GFP_
ATOMIC
))
<
0
)
err
(
"submit(tx_urb), status %d"
,
status
);
catc
->
tx_idx
=
!
catc
->
tx_idx
;
...
...
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