]> git.baikalelectronics.ru Git - kernel.git/commit
binder: free memory on error
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 21 Aug 2017 14:13:28 +0000 (16:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2017 01:45:07 +0000 (18:45 -0700)
commitc4032064382295491ace00df0e802e218f3f564b
treeec539b0a38b4b6a2f38b88bbe1caba45eed3c251
parent9823bfefe1c47d29b57914bab63bd009c17f6b57
binder: free memory on error

On binder_init() the devices string is duplicated and smashed into individual
device names which are passed along. However, the original duplicated string
wasn't freed in case binder_init() failed. Let's free it on error.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c