diff --git a/net/sched/sch_taprio.c b/net/sched/sch_taprio.c index b0ad7687ee2c..f52877164398 100644 --- a/net/sched/sch_taprio.c +++ b/net/sched/sch_taprio.c @@ -1768,7 +1768,7 @@ static int dump_schedule(struct sk_buff *msg, struct sched_entry *entry; if (nla_put_s64(msg, TCA_TAPRIO_ATTR_SCHED_BASE_TIME, - root->base_time, TCA_TAPRIO_PAD)) + root->base_time, TCA_TAPRIO_PAD) && root->base_time) return -1; if (nla_put_s64(msg, TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME,