diff options
| author | 2024-10-24 22:17:07 +0000 | |
|---|---|---|
| committer | 2024-10-24 22:17:07 +0000 | |
| commit | b4e50ffb6798e503e13efb07bf51202cc86ed187 (patch) | |
| tree | 83f29469833956db830d9b7082b4505dd747e2c0 /libs/binder/IPCThreadState.cpp | |
| parent | abfcdc866f01f8ff2d96980ccb463fabcc71b96d (diff) | |
| parent | c0ad6b029838b40236fba0adfc31c571e955e21a (diff) | |
Merge "binder: fix FD handling in continueWrite" into tm-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 3c97dcab93..a62425e984 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -1443,7 +1443,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*/) @@ -1453,7 +1453,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); |