STM_HEARTBEAT_MAX
} stm_heartbeat[STM_HEARTBEAT_MAX];
if (nr_devs < 0 || nr_devs > STM_HEARTBEAT_MAX)