diff options
author | 2016-05-30 17:11:59 +0200 | |
---|---|---|
committer | 2016-05-30 17:11:59 +0200 | |
commit | 545ebd9a9be6bcbcf3e8dc24b874bfd634131946 (patch) | |
tree | f71f325c741cddd9141d9a750f6bf7dec0566454 /net/unix/af_unix.c | |
parent | gpio: bail out silently on NULL descriptors (diff) | |
download | wireguard-linux-545ebd9a9be6bcbcf3e8dc24b874bfd634131946.tar.xz wireguard-linux-545ebd9a9be6bcbcf3e8dc24b874bfd634131946.zip |
gpio: drop lock before reading GPIO direction
When adding the gpiochip, the GPIO HW drivers' callback get_direction()
could get called in atomic context. Some of the GPIO HW drivers may
sleep when accessing the register.
Move the lock before initializing the descriptors.
Reported-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions