Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openwrt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Freifunk Luebeck
openwrt
Commits
ee2b511e
Commit
ee2b511e
authored
12 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
cns3xxx: prevent the ethernet driver from accessing uninitialized dma descriptor entries
SVN-Revision: 35950
parent
d22ac8d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
+2
-1
2 additions, 1 deletion
...x/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
with
2 additions
and
1 deletion
target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
+
2
−
1
View file @
ee2b511e
...
@@ -619,8 +619,9 @@ static int eth_poll(struct napi_struct *napi, int budget)
...
@@ -619,8 +619,9 @@ static int eth_poll(struct napi_struct *napi, int budget)
unsigned
int
length
;
unsigned
int
length
;
unsigned
int
i
=
rx_ring
->
cur_index
;
unsigned
int
i
=
rx_ring
->
cur_index
;
struct
rx_desc
*
desc
=
&
(
rx_ring
)
->
desc
[
i
];
struct
rx_desc
*
desc
=
&
(
rx_ring
)
->
desc
[
i
];
unsigned
int
alloc_count
=
rx_ring
->
alloc_count
;
while
(
desc
->
cown
)
{
while
(
desc
->
cown
&&
alloc_count
+
received
<
RX_DESCS
-
1
)
{
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
int
reserve
=
SKB_HEAD_ALIGN
;
int
reserve
=
SKB_HEAD_ALIGN
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment