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
fe777b45
Commit
fe777b45
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 xirc2ps using skb_padto
parent
b36864af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
drivers/net/pcmcia/xirc2ps_cs.c
drivers/net/pcmcia/xirc2ps_cs.c
+6
-1
No files found.
drivers/net/pcmcia/xirc2ps_cs.c
View file @
fe777b45
...
...
@@ -1547,7 +1547,6 @@ do_start_xmit(struct sk_buff *skb, struct net_device *dev)
DEBUG
(
1
,
"do_start_xmit(skb=%p, dev=%p) len=%u
\n
"
,
skb
,
dev
,
pktlen
);
netif_stop_queue
(
dev
);
/* adjust the packet length to min. required
* and hope that the buffer is large enough
...
...
@@ -1557,8 +1556,14 @@ do_start_xmit(struct sk_buff *skb, struct net_device *dev)
* pad this in his buffer with random bytes
*/
if
(
pktlen
<
ETH_ZLEN
)
{
skb
=
skb_padto
(
skb
,
ETH_ZLEN
);
if
(
skb
==
NULL
)
return
0
;
pktlen
=
ETH_ZLEN
;
}
netif_stop_queue
(
dev
);
SelectPage
(
0
);
PutWord
(
XIRCREG0_TRS
,
(
u_short
)
pktlen
+
2
);
freespace
=
GetWord
(
XIRCREG0_TSO
);
...
...
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