Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e486c69 authored by songjinshi's avatar songjinshi
Browse files

[binder]: Use _IOC_NRMASK instead of oxff to filter out the cmd.



See CL 938718 for more information.

Change-Id: I36b18bcbaae4a971283f67b229334da0e42a2f36
signed-off-by: default avatarsongjinshi <songjinshi@xiaomi.com>
parent c684ad61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,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