[PATCH openEuler-1.0-LTS 042/149] genirq/matrix: Prevent allocation counter corruption