diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-02-12 22:39:20 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-02-14 09:34:03 +0100 |
commit | ba5c5effe02c4ae06291c7c5e67de8fedad3cf9a (patch) | |
tree | 1cccf841eef0e4814810cabc9638272461635209 /mm/gup.c | |
parent | 5e6284444024cf7e7d0ae538df8037a3a5efbec8 (diff) |
gpio: initialize descriptor SRCU structure before adding OF-based chips
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: be711caa87c5 ("gpio: add SRCU infrastructure to struct gpio_desc")
Fixes: 1f2bcb8c8ccd ("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.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'mm/gup.c')
0 files changed, 0 insertions, 0 deletions