staging: binder: fix usage of uninit scalar in binder_transaction()
authorChristian Engelmayer <cengelma@gmx.at>
Wed, 7 May 2014 19:44:53 +0000 (21:44 +0200)
committerRiley Andrews <riandrews@google.com>
Tue, 13 Jan 2015 22:40:52 +0000 (22:40 +0000)
commit045788ea680a4e204aa832ba3985ee1f6a87abc4
tree42027cb1d1d160f6fdb9f82827ed9677c2016d21
parent12b727a8f9ba257c8d5882a65661e5a81521e571
staging: binder: fix usage of uninit scalar in binder_transaction()

Fix the error path when a cookie mismatch is detected. In that case the
function jumps to the exit label without setting the uninitialized, local
variable 'return_error'. Detected by Coverity - CID 201453.

Change-Id: I6c960b7d3ad0adb28fad106a9a0b8cb934013987
Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Acked-by: Arve <arve@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/binder.c