[PATCH 6.1 181/223] regmap-irq: Fix out-of-bounds access when allocating config buffers