OSDN Git Service

binder: handle syscall restart in BINDER_WRITE_READ ioctl
authorAndy Ross <andy.ross@windriver.com>
Thu, 28 Mar 2013 18:29:41 +0000 (11:29 -0700)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 13 Dec 2014 17:04:42 +0000 (01:04 +0800)
commitcb9a5a6a200e8904beebc099ef8b2351fa9fbb42
tree5cad40ff286ca9fdcaf1b8a7150ec4e08e8081c2
parent5b7754768562b2571c10e40323c85c298ac08d94
binder: handle syscall restart in BINDER_WRITE_READ ioctl

The blocking wait in the "read" half of the ioctl could wake up on
signal delivery, and the default ERESTARTSYS handling would cause the
whole syscall to restart resulting in a doubled write.

Issue: AXIA-1880
Change-Id: Id49e4a088d08feca63bff43d28be6530820d9c3d
Signed-off-by: Andy Ross <andy.ross@windriver.com>
drivers/staging/android/binder.c