diff options
| author | 2019-04-04 17:08:37 +0000 | |
|---|---|---|
| committer | 2019-04-04 17:08:37 +0000 | |
| commit | 0b32b12091dfc96f6ce086850843bc780e2bbf15 (patch) | |
| tree | 262b20a34a84988cee6089f07f91129663b1fe23 | |
| parent | 714761d2bd8552c57062ee8fc78654772a044c6d (diff) | |
| parent | 8e486c694b422ce19b4c5edc4afd049797891d5f (diff) | |
Merge "[binder]: Use _IOC_NRMASK instead of oxff to filter out the cmd."
| -rw-r--r-- | libs/binder/IPCThreadState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index e60f03ae54..4b70e2e004 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -114,7 +114,7 @@ static const char *kCommandStrings[] = { static const char* getReturnString(uint32_t cmd) { - size_t idx = cmd & 0xff; + size_t idx = cmd & _IOC_NRMASK; if (idx < sizeof(kReturnStrings) / sizeof(kReturnStrings[0])) return kReturnStrings[idx]; else |