summaryrefslogtreecommitdiffstats
path: root/include/trace/events/qdisc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/events/qdisc.h')
-rw-r--r--include/trace/events/qdisc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/events/qdisc.h b/include/trace/events/qdisc.h
index 1f4258308b..061fd49603 100644
--- a/include/trace/events/qdisc.h
+++ b/include/trace/events/qdisc.h
@@ -81,14 +81,14 @@ TRACE_EVENT(qdisc_reset,
TP_ARGS(q),
TP_STRUCT__entry(
- __string( dev, qdisc_dev(q)->name )
+ __string( dev, qdisc_dev(q) ? qdisc_dev(q)->name : "(null)" )
__string( kind, q->ops->id )
__field( u32, parent )
__field( u32, handle )
),
TP_fast_assign(
- __assign_str(dev, qdisc_dev(q)->name);
+ __assign_str(dev, qdisc_dev(q) ? qdisc_dev(q)->name : "(null)");
__assign_str(kind, q->ops->id);
__entry->parent = q->parent;
__entry->handle = q->handle;