-
Bartosz Golaszewski authored
In certain situations we may end up taking the GPIO descriptor SRCU read lock in of_gpiochip_add() before the SRCU struct is initialized. Move the initialization before the call to of_gpiochip_add(). Fixes: be711caa ("gpio: add SRCU infrastructure to struct gpio_desc") Fixes: 1f2bcb8c ("gpio: protect the descriptor label with SRCU") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-lkp/202402122228.e607a080-lkp@intel.comSigned-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
ba5c5eff