Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d7e245a in mainline for kernel/generic/src/ipc/sysipc.c


Ignore:
Timestamp:
2017-11-26T20:13:07Z (4 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
7b8f933
Parents:
474c68b
Message:

Use ordinary errors instead of IPC_CALLRET_FATAL

File:
1 edited

Legend:

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

    r474c68b rd7e245a  
    358358 * @param label    User-defined label.
    359359 *
    360  * @return Call hash on success.
    361  * @return IPC_CALLRET_FATAL in case of a fatal error.
     360 * @return EOK on success.
     361 * @return Negative error code on error.
    362362 *
    363363 */
     
    367367        kobject_t *kobj = kobject_get(TASK, handle, KOBJECT_TYPE_PHONE);
    368368        if (!kobj)
    369                 return IPC_CALLRET_FATAL;
     369                return ENOENT;
    370370       
    371371        if (check_call_limit(kobj->phone)) {
    372372                kobject_put(kobj);
    373                 return IPC_CALLRET_FATAL;
     373                return ELIMIT;
    374374        }
    375375       
     
    414414        kobject_t *kobj = kobject_get(TASK, handle, KOBJECT_TYPE_PHONE);
    415415        if (!kobj)
    416                 return IPC_CALLRET_FATAL;
     416                return ENOENT;
    417417
    418418        if (check_call_limit(kobj->phone)) {
    419419                kobject_put(kobj);
    420                 return IPC_CALLRET_FATAL;
     420                return ELIMIT;
    421421        }
    422422
Note: See TracChangeset for help on using the changeset viewer.