]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b3dacb8b8cd8b481029fbd5dc7901b1832a2e44
tree4e336942fcfca0715a988332da6d0e7890fbad8e
parent0e751ac101baaa49750cd8a9935b136704250742
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