Staging: binder: Defer flush and release operations to avoid deadlocks.
authorArve Hjønnevåg <arve@android.com>
Mon, 6 Apr 2009 22:13:00 +0000 (15:13 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Apr 2009 18:06:27 +0000 (11:06 -0700)
commit861a0dcc397f3e94024cc311086799393ec517df
treecb0cd51f01acc1d35693df79707e533cae39139f
parent0cf24a7dc9123ddf63c413b6d4b38017b19db713
Staging: binder: Defer flush and release operations to avoid deadlocks.

If a transaction that contains a file descriptor fails on a later object,
the new file descriptor needs to be closed. If this is a binder file
descriptor we would deadlock in flush. If there were no other references to
the file at this point release would also be called.

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