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
9faa23f8
Commit
9faa23f8
authored
Aug 11, 2003
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Aug 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: genelink_tx_fixup fails to check for memory allocation failure
this can oops. - check for mem alloc failure
parent
8cc113a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
drivers/usb/net/usbnet.c
drivers/usb/net/usbnet.c
+2
-0
No files found.
drivers/usb/net/usbnet.c
View file @
9faa23f8
...
...
@@ -986,6 +986,8 @@ genelink_tx_fixup (struct usbnet *dev, struct sk_buff *skb, int flags)
skb2
=
skb_copy_expand
(
skb
,
(
4
+
4
*
1
)
,
padlen
,
flags
);
dev_kfree_skb_any
(
skb
);
skb
=
skb2
;
if
(
!
skb
)
return
NULL
;
}
// attach the packet count to the header
...
...
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