uti: fix syscall response is mis-consumed by __do_in_kernel_irq_syscall
Refs: #1617 Change-Id: Iddd8ccd81d7f692f1f45ec888d31c2a87ec521ce
This commit is contained in:
committed by
Masamichi Takagi
parent
afea6af667
commit
35296c8210
@ -366,6 +366,7 @@ retry_alloc:
|
||||
|
||||
#define STATUS_IN_PROGRESS 0
|
||||
#define STATUS_SYSCALL 4
|
||||
#define __NR_syscall_response 8001
|
||||
req->valid = 0;
|
||||
|
||||
if (__notify_syscall_requester(usrdata->os, packet, resp) < 0) {
|
||||
@ -440,7 +441,7 @@ retry_alloc:
|
||||
req->valid = 0;
|
||||
|
||||
/* check result */
|
||||
if (req->number != __NR_mmap) {
|
||||
if (req->number != __NR_syscall_response) {
|
||||
printk("%s:unexpected response. %lx %lx\n",
|
||||
__FUNCTION__, req->number, req->args[0]);
|
||||
syscall_ret = -EIO;
|
||||
|
||||
Reference in New Issue
Block a user