Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpiolib: fix request related issue

Fix request-already-requested handling in gpio_request().

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: <stable@kernel.org> [2.6.28.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Magnus Damm and committed by
Linus Torvalds
7460db56 7bcc1bb1

+1
+1
drivers/gpio/gpiolib.c
··· 789 789 } else { 790 790 status = -EBUSY; 791 791 module_put(chip->owner); 792 + goto done; 792 793 } 793 794 794 795 if (chip->request) {