Staging: binder: Keep a reference to the files_struct while the driver is mmapped
authorArve Hjønnevåg <arve@android.com>
Mon, 6 Apr 2009 22:12:57 +0000 (15:12 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Apr 2009 18:06:26 +0000 (11:06 -0700)
commit282ca175d4c440ec4d74bc622ee497e5b3530ce5
tree4e336942fcfca0715a988332da6d0e7890fbad8e
parentea5c4cc68e2b5f4ec41d666376d3606d4d5c3426
Staging: binder: Keep a reference to the files_struct while the driver is mmapped

This prevents breaking fget_light if a single threaded application
allows incoming file descriptors (in replies or on nodes).
Should also prevent inserting a file in the wrong files_struct if the
receving process execs in the middle of a transaction (between
task_get_unused_fd_flags and task_fd_install).

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