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/sched: act_mpls: ensure LSE is pullable before reading it
[linux-2.6-microblaze.git]
/
net
/
sched
/
act_mpls.c
diff --git
a/net/sched/act_mpls.c
b/net/sched/act_mpls.c
index
5c7456e
..
d1486ea
100644
(file)
--- a/
net/sched/act_mpls.c
+++ b/
net/sched/act_mpls.c
@@
-105,6
+105,9
@@
static int tcf_mpls_act(struct sk_buff *skb, const struct tc_action *a,
goto drop;
break;
case TCA_MPLS_ACT_MODIFY:
+ if (!pskb_may_pull(skb,
+ skb_network_offset(skb) + MPLS_HLEN))
+ goto drop;
new_lse = tcf_mpls_get_lse(mpls_hdr(skb), p, false);
if (skb_mpls_update_lse(skb, new_lse))
goto drop;