fileobj_create: Suppress message on getting -ESRCH
-ESRCH from mcctrl doesn't mean an error but the file is not a regular file and mcctrl wants McKernel to treat it as a device file. Change-Id: Ie121f0e6a8b1f0a29c2f2cf193a51f4f52337809
This commit is contained in:
committed by
Balazs Gerofi
parent
9b8424523a
commit
94d093f058
@ -206,8 +206,15 @@ int fileobj_create(int fd, struct memobj **objp, int *maxprotp, uintptr_t virt_a
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
error = syscall_generic_forwarding(__NR_mmap, &ctx);
|
||||
|
||||
if (error) {
|
||||
kprintf("%s(%d):create failed. %d\n", __func__, fd, error);
|
||||
/* -ESRCH doesn't mean an error but requesting a fall
|
||||
* back to treat the file as a device file
|
||||
*/
|
||||
if (error != -ESRCH) {
|
||||
kprintf("%s(%d):create failed. %d\n",
|
||||
__func__, fd, error);
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user