hw: cancel waiting for IPC requests

ref #899
This commit is contained in:
Martin Stein 2013-09-19 15:14:04 +02:00 committed by Norman Feske
parent 039bae9710
commit 26db598fc0

View File

@ -38,10 +38,10 @@ class Kernel::Ipc_node
enum State
{
INACTIVE = 1,
AWAIT_REPLY = 2,
AWAIT_REQUEST = 3,
PREPARE_REPLY = 4,
INACTIVE = 1,
AWAIT_REPLY = 2,
AWAIT_REQUEST = 3,
PREPARE_REPLY = 4,
PREPARE_AND_AWAIT_REPLY = 5,
};
@ -318,6 +318,10 @@ class Kernel::Ipc_node
_state = INACTIVE;
_await_ipc_failed();
return;
case AWAIT_REQUEST:
_state = INACTIVE;
_await_ipc_failed();
return;
case PREPARE_AND_AWAIT_REPLY:
_cancel_outbuf_request();
_state = PREPARE_REPLY;