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
Kirill Smelkov
linux
Commits
cf43d744
Commit
cf43d744
authored
Jan 10, 2003
by
Alan Cox
Committed by
Linus Torvalds
Jan 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix sun3_82586 using skb_padto
parent
fbc107dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
drivers/net/sun3_82586.c
drivers/net/sun3_82586.c
+5
-1
No files found.
drivers/net/sun3_82586.c
View file @
cf43d744
...
...
@@ -1010,8 +1010,12 @@ static int sun3_82586_send_packet(struct sk_buff *skb, struct net_device *dev)
else
#endif
{
len
=
skb
->
len
;
if
(
len
<
ETH_ZLEN
)
{
memset
((
char
*
)
p
->
xmit_cbuffs
[
p
->
xmit_count
],
0
,
ETH_ZLEN
);
len
=
ETH_ZLEN
;
}
memcpy
((
char
*
)
p
->
xmit_cbuffs
[
p
->
xmit_count
],(
char
*
)(
skb
->
data
),
skb
->
len
);
len
=
(
ETH_ZLEN
<
skb
->
len
)
?
skb
->
len
:
ETH_ZLEN
;
#if (NUM_XMIT_BUFFS == 1)
# ifdef NO_NOPCOMMANDS
...
...
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