summaryrefslogtreecommitdiffstats
path: root/hw/timer/sse-timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/timer/sse-timer.c')
-rw-r--r--hw/timer/sse-timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/timer/sse-timer.c b/hw/timer/sse-timer.c
index 8dbe6ac651..f959cb9d60 100644
--- a/hw/timer/sse-timer.c
+++ b/hw/timer/sse-timer.c
@@ -415,6 +415,7 @@ static void sse_timer_realize(DeviceState *dev, Error **errp)
if (!s->counter) {
error_setg(errp, "counter property was not set");
+ return;
}
s->counter_notifier.notify = sse_timer_counter_callback;