projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: dsa: ksz: Check return value
[linux-2.6-microblaze.git]
/
net
/
dsa
/
tag_ksz.c
diff --git
a/net/dsa/tag_ksz.c
b/net/dsa/tag_ksz.c
index
38fa19c
..
4292502
100644
(file)
--- a/
net/dsa/tag_ksz.c
+++ b/
net/dsa/tag_ksz.c
@@
-21,7
+21,8
@@
static struct sk_buff *ksz_common_rcv(struct sk_buff *skb,
if (!skb->dev)
return NULL;
- pskb_trim_rcsum(skb, skb->len - len);
+ if (pskb_trim_rcsum(skb, skb->len - len))
+ return NULL;
dsa_default_offload_fwd_mark(skb);