[PATCH 6.4 242/292] regmap-irq: Fix out-of-bounds access when allocating config buffers