diff options
-rw-r--r-- | net/caif/caif_dev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c index e601da7ca2ff..551d2fd6a80d 100644 --- a/net/caif/caif_dev.c +++ b/net/caif/caif_dev.c | |||
@@ -128,6 +128,11 @@ void caif_flow_cb(struct sk_buff *skb) | |||
128 | 128 | ||
129 | rcu_read_lock(); | 129 | rcu_read_lock(); |
130 | caifd = caif_get(skb->dev); | 130 | caifd = caif_get(skb->dev); |
131 | |||
132 | WARN_ON(caifd == NULL); | ||
133 | if (caifd == NULL) | ||
134 | return; | ||
135 | |||
131 | caifd_hold(caifd); | 136 | caifd_hold(caifd); |
132 | rcu_read_unlock(); | 137 | rcu_read_unlock(); |
133 | 138 | ||