]> git.hungrycats.org Git - linux/commit
binder: add missing binder_unlock()
authorEric Biggers <ebiggers@google.com>
Mon, 26 Feb 2018 18:56:45 +0000 (10:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Feb 2018 09:17:23 +0000 (10:17 +0100)
commitbf5a6a7256834ad88104d3a99cc935c9ac49b527
treef63cdb67cbe1c22be178e882950eb510291a3214
parent2938d3b2745416deff774217c608ad5ea23fbcad
binder: add missing binder_unlock()

When commit 4be5a2810489 ("binder: check for binder_thread allocation
failure in binder_poll()") was applied to 4.4-stable and 4.9-stable it
was forgotten to release the global binder lock in the new error path.
The global binder lock wasn't removed until v4.14, by commit
a60b890f607d ("binder: remove global binder lock").

Fix the new error path to release the lock.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c