Skip to content
Commit f380c674 authored by Danny Lin's avatar Danny Lin Committed by Cykeek
Browse files

binder: Fix log spam caused by interrupted waits



Being interrupted by a signal during binder ioctls is not unusual.
Commit 218225c05beaf02320f05a9b3b7041e27a0684f7 changed the interrupted
ioctl return code from ERESTARTSYS to EINTR, but the error logging check
was never updated:

[  352.090265] binder: 6534:6552 ioctl c0306201 7a0f9fea10 returned -4
[  352.090393] binder: 6534:7670 ioctl c0306201 7a6489da10 returned -4
[  352.090432] binder: 6534:9501 ioctl c0306201 7a61377a10 returned -4

Update the return code to fix the log spam.

[orges]: this is not actually a duplicate commit. the log is pretty much
the same except it returns -512
Signed-off-by: default avatarDanny Lin <danny@kdrag0n.dev>
Signed-off-by: default avatarOktapra Amtono <oktapra.amtono@gmail.com>
Signed-off-by: default avatarclarencelol <clarencekuiek@icloud.com>
Signed-off-by: default avatarAnush02198 <Anush.4376@gmail.com>
Signed-off-by: default avatarDivyanshu-Modi <divyan.m05@gmail.com>
Signed-off-by: default avatarTashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
parent f579d13d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment