summaryrefslogtreecommitdiffstats
path: root/kernel/net/sched/cls_rsvp.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/sched/cls_rsvp.h')
-rw-r--r--kernel/net/sched/cls_rsvp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/net/sched/cls_rsvp.h b/kernel/net/sched/cls_rsvp.h
index f9c9fc075..9992dfac6 100644
--- a/kernel/net/sched/cls_rsvp.h
+++ b/kernel/net/sched/cls_rsvp.h
@@ -152,7 +152,8 @@ static int rsvp_classify(struct sk_buff *skb, const struct tcf_proto *tp,
return -1;
nhptr = ip_hdr(skb);
#endif
-
+ if (unlikely(!head))
+ return -1;
restart:
#if RSVP_DST_LEN == 4