7d18f0a14aa6a0d6bad39111c1fb655f07f71d59 ("gpio: No NULL owner") fixes an issue from 24e78079bf2250874e33da2e7cfbb6db72d3caf4 ("gpio: label descriptors using the device name") which has been included in stable branches. It handles the case where GPIOs are fetched with a NULL parent device.
The patch originally went in in 4.15, so more recent branches shouldn't have that issue.
-Daniel Rosenberg
linux-stable-mirror@lists.linaro.org