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
a1db5c5b
Commit
a1db5c5b
authored
Nov 29, 2012
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solos-pci: use GFP_KERNEL where possible, not GFP_ATOMIC
Signed-off-by:
David Woodhouse
<
David.Woodhouse@intel.com
>
parent
213e85d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/atm/solos-pci.c
drivers/atm/solos-pci.c
+3
-3
No files found.
drivers/atm/solos-pci.c
View file @
a1db5c5b
...
...
@@ -841,7 +841,7 @@ static int popen(struct atm_vcc *vcc)
return
-
EINVAL
;
}
skb
=
alloc_skb
(
sizeof
(
*
header
),
GFP_
ATOMIC
);
skb
=
alloc_skb
(
sizeof
(
*
header
),
GFP_
KERNEL
);
if
(
!
skb
)
{
if
(
net_ratelimit
())
dev_warn
(
&
card
->
dev
->
dev
,
"Failed to allocate sk_buff in popen()
\n
"
);
...
...
@@ -881,7 +881,7 @@ static void pclose(struct atm_vcc *vcc)
}
spin_unlock
(
&
card
->
tx_queue_lock
);
skb
=
alloc_skb
(
sizeof
(
*
header
),
GFP_
ATOMIC
);
skb
=
alloc_skb
(
sizeof
(
*
header
),
GFP_
KERNEL
);
if
(
!
skb
)
{
dev_warn
(
&
card
->
dev
->
dev
,
"Failed to allocate sk_buff in pclose()
\n
"
);
return
;
...
...
@@ -1268,7 +1268,7 @@ static int atm_init(struct solos_card *card, struct device *parent)
card
->
atmdev
[
i
]
->
phy_data
=
(
void
*
)(
unsigned
long
)
i
;
atm_dev_signal_change
(
card
->
atmdev
[
i
],
ATM_PHY_SIG_FOUND
);
skb
=
alloc_skb
(
sizeof
(
*
header
),
GFP_
ATOMIC
);
skb
=
alloc_skb
(
sizeof
(
*
header
),
GFP_
KERNEL
);
if
(
!
skb
)
{
dev_warn
(
&
card
->
dev
->
dev
,
"Failed to allocate sk_buff in atm_init()
\n
"
);
continue
;
...
...
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