Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
e4e90b21
Commit
e4e90b21
authored
Feb 10, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
irda: Use __netdev_alloc_skb() instead of __dev_alloc_skb().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
9034f77b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
drivers/net/irda/sir_dev.c
drivers/net/irda/sir_dev.c
+2
-1
No files found.
drivers/net/irda/sir_dev.c
View file @
e4e90b21
...
@@ -753,7 +753,8 @@ static int sirdev_alloc_buffers(struct sir_dev *dev)
...
@@ -753,7 +753,8 @@ static int sirdev_alloc_buffers(struct sir_dev *dev)
dev
->
rx_buff
.
truesize
=
IRDA_SKB_MAX_MTU
;
dev
->
rx_buff
.
truesize
=
IRDA_SKB_MAX_MTU
;
/* Bootstrap ZeroCopy Rx */
/* Bootstrap ZeroCopy Rx */
dev
->
rx_buff
.
skb
=
__dev_alloc_skb
(
dev
->
rx_buff
.
truesize
,
GFP_KERNEL
);
dev
->
rx_buff
.
skb
=
__netdev_alloc_skb
(
dev
->
netdev
,
dev
->
rx_buff
.
truesize
,
GFP_KERNEL
);
if
(
dev
->
rx_buff
.
skb
==
NULL
)
if
(
dev
->
rx_buff
.
skb
==
NULL
)
return
-
ENOMEM
;
return
-
ENOMEM
;
skb_reserve
(
dev
->
rx_buff
.
skb
,
1
);
skb_reserve
(
dev
->
rx_buff
.
skb
,
1
);
...
...
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