A vulnerability in the Linux kernel's GPIO shared subsystem caused a NULL-pointer dereference when performing fwnode-based lookups without an associated device. The issue arises because the platform lookup tables for shared GPIOs require a struct device, and the absence of this leads to a crash. The fix adds a check to gracefully handle this condition with an error instead of dereferencing a NULL pointer.