Skip to content

Commit 7460db5

Browse files
Magnus Dammtorvalds
authored andcommitted
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>
1 parent 7bcc1bb commit 7460db5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/gpio/gpiolib.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ int gpio_request(unsigned gpio, const char *label)
789789
} else {
790790
status = -EBUSY;
791791
module_put(chip->owner);
792+
goto done;
792793
}
793794

794795
if (chip->request) {

0 commit comments

Comments
 (0)