[shortcut-fe] fix null dereference for non-PPPoE case
Change-Id: Ia729233af93259b792d90704c5b7193a028c3637
Signed-off-by: Matthew McClintock <mmcclint@codeaurora.org>
diff --git a/fast-classifier/fast-classifier.c b/fast-classifier/fast-classifier.c
index d4f07bd..6f8bad0 100644
--- a/fast-classifier/fast-classifier.c
+++ b/fast-classifier/fast-classifier.c
@@ -642,7 +642,7 @@
}
sic.mark = skb->mark;
- if (last_pppox_sock->pppoe_dev == in->name) {
+ if (last_pppox_sock && last_pppox_sock->pppoe_dev == in->name) {
struct sock *sk = &last_pppox_sock->sk;
if (sk->sk_family == PF_PPPOX && sk->sk_protocol == PX_PROTO_OE) {