CVE-2025-38395 regulator: gpio: Fix the out-of-bounds access to drvdata::gpiods