]> git.baikalelectronics.ru Git - kernel.git/commit
android: binder: fixup crash introduced by moving buffer hdr
authorSherry Yang <sherryy@android.com>
Thu, 31 Aug 2017 17:26:06 +0000 (10:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Sep 2017 06:53:32 +0000 (08:53 +0200)
commitbefb62bfe94d9da6973d3eaea6bf43ee3eb86770
tree29ee546d99a4b6b1f722c0ad89c6c18d80cf95b5
parent3ca08802a48ee3bf5316f4dbe34b35110e5b8828
android: binder: fixup crash introduced by moving buffer hdr

Fix crash introduced by 11f594eac3fb0e40d40f678ee6a7bc130b1363d2
(android: binder: Move buffer out of area shared with user space)
when close is called after open without mmap in between.

Reported-by: kernel test robot <fengguang.wu@intel.com>
Fixes: 11f594eac3fb ("android: binder: Move buffer out of area shared with user space")
Signed-off-by: Sherry Yang <sherryy@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder_alloc.c