aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/cec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/cec.c b/hw/cec.c
index 6c0fea8..23d6362 100644
--- a/hw/cec.c
+++ b/hw/cec.c
@@ -37,6 +37,7 @@ struct io_hub *cec_get_hub_by_id(uint32_t hub_id)
void cec_register(struct io_hub *hub)
{
+ assert(hub->hub_id < MAX_IO_HUBS);
cec_iohubs[hub->hub_id] = hub;
}