Staging: binder: mmap fixes.
authorArve Hjønnevåg <arve@android.com>
Mon, 6 Apr 2009 22:12:55 +0000 (15:12 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Apr 2009 18:06:26 +0000 (11:06 -0700)
commit4ddfc911e39a01f95ad9765d3b9e6f43e14eeff4
tree2188fdf4f928a78dfcc6fb3305041494ef59da10
parent85e0b0cbbfc17e7f7baa9e76f9a937249108fc52
Staging: binder: mmap fixes.

Only allow a binder file pointer to be mmapped once. The buffer management
code cannot deal with more then one area.
Also remove leftover mutex_unlock if mmap fails.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/android/binder.c