| commit | 0b32b12091dfc96f6ce086850843bc780e2bbf15 | [log] [tgz] |
|---|---|---|
| author | Steven Moreland <smoreland@google.com> | Thu Apr 04 17:08:37 2019 +0000 |
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Apr 04 17:08:37 2019 +0000 |
| tree | 262b20a34a84988cee6089f07f91129663b1fe23 | |
| parent | 714761d2bd8552c57062ee8fc78654772a044c6d [diff] | |
| parent | 8e486c694b422ce19b4c5edc4afd049797891d5f [diff] |
Merge "[binder]: Use _IOC_NRMASK instead of oxff to filter out the cmd."
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index e60f03a..4b70e2e 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp
@@ -114,7 +114,7 @@ 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