-
Federico Vaga authored
The funciton ``trtl_close()`` was closing all possible file descriptors based on the maximum number of CPUs and HMQs configurable on Mock-Turtle. Consequentially ``trtl_close()`` may close random file descriptors because fd_cpu and fd_hmq may contain random value for unused entries. Instead, the ``trtl_close()`` should close **only** those devices really existing according to the configuration ROM. Reported-by: Dimitris Lampridis <dimitris.lampridis@cern.ch> Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
1bcbe6a6