diff options
| author | 2024-10-25 18:04:01 +0000 | |
|---|---|---|
| committer | 2024-10-25 18:04:01 +0000 | |
| commit | 861499531fc9fad9303fe8ac4150fecf43a2d76b (patch) | |
| tree | aafcfed9589d6f30c6ed68a731637e1c119304c7 /libs/binder/IPCThreadState.cpp | |
| parent | 0db4fced4d2c8325c93f61ac4ab385b47e041f23 (diff) | |
| parent | 8010cbb3c706c9448c2820ca97e238b67c6b31d6 (diff) | |
Merge "binder: fix FD handling in continueWrite" into sc-dev
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
| -rw-r--r-- | libs/binder/IPCThreadState.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 445df9eeff..b08568a61c 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -1419,7 +1419,7 @@ status_t IPCThreadState::freeze(pid_t pid, bool enable, uint32_t timeout_ms) { return ret; } -void IPCThreadState::freeBuffer(Parcel* parcel, const uint8_t* data, +void IPCThreadState::freeBuffer(Parcel* /*parcel*/, const uint8_t* data, size_t /*dataSize*/, const binder_size_t* /*objects*/, size_t /*objectsSize*/) @@ -1429,7 +1429,6 @@ void IPCThreadState::freeBuffer(Parcel* parcel, const uint8_t* data, alog << "Writing BC_FREE_BUFFER for " << data << endl; } ALOG_ASSERT(data != NULL, "Called with NULL data"); - if (parcel != nullptr) parcel->closeFileDescriptors(); IPCThreadState* state = self(); state->mOut.writeInt32(BC_FREE_BUFFER); state->mOut.writePointer((uintptr_t)data); |