]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 11:51:32 +0000 (20:51 +0900)
commit22ab5076b5fe059a8d3827a0125af01b74236a9d
tree264aea4ef3ccf85f9c08ff5d0e15196da014afff
parent2861b04b3146c98c29ea3df17450e8ec20e13170
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.

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