[gbinder] Fix gbinder_driver_reply_data return value. Fixes JB#61613
Previously this always returned 1. Drop the first comparison so status can be negative and errors will return 0. Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
This commit is contained in:
@@ -506,7 +506,7 @@ gbinder_driver_reply_data(
|
||||
write.ptr = (uintptr_t)buf;
|
||||
write.size = len;
|
||||
write.consumed = 0;
|
||||
status = gbinder_driver_write(self, &write) >= 0;
|
||||
status = gbinder_driver_write(self, &write);
|
||||
|
||||
g_free(offsets_buf);
|
||||
return status >= 0;
|
||||
|
||||
Reference in New Issue
Block a user