aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/core/drop_monitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/drop_monitor.c b/net/core/drop_monitor.c
index 9d66fa953ab7..d31120248c03 100644
--- a/net/core/drop_monitor.c
+++ b/net/core/drop_monitor.c
@@ -182,7 +182,8 @@ static void trace_napi_poll_hit(struct napi_struct *napi)
182 /* 182 /*
183 * Ratelimit our check time to dm_hw_check_delta jiffies 183 * Ratelimit our check time to dm_hw_check_delta jiffies
184 */ 184 */
185 if (!time_after(jiffies, napi->dev->last_rx + dm_hw_check_delta)) 185 if (!napi->dev ||
186 !time_after(jiffies, napi->dev->last_rx + dm_hw_check_delta))
186 return; 187 return;
187 188
188 rcu_read_lock(); 189 rcu_read_lock();