Changeset 642dc72 in mainline


Ignore:
Timestamp:
2012-08-20T21:47:32Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8039a86
Parents:
f0defd2
Message:

Return null_ops if sysipc_ops is not defined for a given method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/sysipc_ops.c

    rf0defd2 r642dc72  
    9292{
    9393        if (imethod < sizeof(sysipc_ops) / (sizeof(sysipc_ops_t)))
    94                 return sysipc_ops[imethod];
     94                return sysipc_ops[imethod] ? sysipc_ops[imethod] : &null_ops;
     95
    9596        return &null_ops;
    9697}
Note: See TracChangeset for help on using the changeset viewer.