[PATCH 5.10 40/42] gpio: fix resource unwinding order in error path