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
eee79d4f
Commit
eee79d4f
authored
Nov 07, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use dev_kfree_skb_any not dev_kfree_skb in tg3 net driver
function tg3_free_rings. Spotted by DaveM.
parent
40346461
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/net/tg3.c
drivers/net/tg3.c
+3
-3
No files found.
drivers/net/tg3.c
View file @
eee79d4f
...
@@ -2729,7 +2729,7 @@ static void tg3_free_rings(struct tg3 *tp)
...
@@ -2729,7 +2729,7 @@ static void tg3_free_rings(struct tg3 *tp)
pci_unmap_addr
(
rxp
,
mapping
),
pci_unmap_addr
(
rxp
,
mapping
),
RX_PKT_BUF_SZ
-
tp
->
rx_offset
,
RX_PKT_BUF_SZ
-
tp
->
rx_offset
,
PCI_DMA_FROMDEVICE
);
PCI_DMA_FROMDEVICE
);
dev_kfree_skb
(
rxp
->
skb
);
dev_kfree_skb
_any
(
rxp
->
skb
);
rxp
->
skb
=
NULL
;
rxp
->
skb
=
NULL
;
}
}
#if TG3_MINI_RING_WORKS
#if TG3_MINI_RING_WORKS
...
@@ -2742,7 +2742,7 @@ static void tg3_free_rings(struct tg3 *tp)
...
@@ -2742,7 +2742,7 @@ static void tg3_free_rings(struct tg3 *tp)
pci_unmap_addr
(
rxp
,
mapping
),
pci_unmap_addr
(
rxp
,
mapping
),
RX_MINI_PKT_BUF_SZ
-
tp
->
rx_offset
,
RX_MINI_PKT_BUF_SZ
-
tp
->
rx_offset
,
PCI_DMA_FROMDEVICE
);
PCI_DMA_FROMDEVICE
);
dev_kfree_skb
(
rxp
->
skb
);
dev_kfree_skb
_any
(
rxp
->
skb
);
rxp
->
skb
=
NULL
;
rxp
->
skb
=
NULL
;
}
}
#endif
#endif
...
@@ -2755,7 +2755,7 @@ static void tg3_free_rings(struct tg3 *tp)
...
@@ -2755,7 +2755,7 @@ static void tg3_free_rings(struct tg3 *tp)
pci_unmap_addr
(
rxp
,
mapping
),
pci_unmap_addr
(
rxp
,
mapping
),
RX_JUMBO_PKT_BUF_SZ
-
tp
->
rx_offset
,
RX_JUMBO_PKT_BUF_SZ
-
tp
->
rx_offset
,
PCI_DMA_FROMDEVICE
);
PCI_DMA_FROMDEVICE
);
dev_kfree_skb
(
rxp
->
skb
);
dev_kfree_skb
_any
(
rxp
->
skb
);
rxp
->
skb
=
NULL
;
rxp
->
skb
=
NULL
;
}
}
...
...
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