diff options
author | Sunny <sunny.sun@arm.com> | 2015-01-13 10:01:08 +0800 |
---|---|---|
committer | Sunny Sun <sunny.sun@arm.com> | 2015-01-16 07:14:28 +0000 |
commit | ddd97ea4911f475fcb6cdc7ab1c1398bcc829566 (patch) | |
tree | 176e1ddf60e7091292c87fda69bac02fa6113d9e | |
parent | 08e6cc7773f67c3f5769c0d1687dba851ee5ad23 (diff) |
fix a segfault when switching VT
add a check before calling AttendClient/IgnoreClient
Change-Id: Iea22d8c31d08a886790e0f7717e9b24375038b52
-rw-r--r-- | src/armsoc_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armsoc_driver.c b/src/armsoc_driver.c index 39aa608..578a563 100644 --- a/src/armsoc_driver.c +++ b/src/armsoc_driver.c @@ -1343,7 +1343,7 @@ ARMSOCEnterVT(VT_FUNC_ARGS_DECL) TRACE_ENTER(); for (i = 1; i < currentMaxClients; i++) { - if (clients[i]) + if (clients[i] && !clients[i]->clientGone) AttendClient(clients[i]); } @@ -1378,7 +1378,7 @@ ARMSOCLeaveVT(VT_FUNC_ARGS_DECL) TRACE_ENTER(); for (i = 1; i < currentMaxClients; i++) { - if (clients[i]) + if (clients[i] && !clients[i]->clientGone) IgnoreClient(clients[i]); } |