From 8406ea98f48b7e7c4c6f2067af768e5994fe70ca Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Thu, 15 Aug 2013 22:39:55 +0400 Subject: triton: do not call context close if it is marked as need free (f.e. context already called triton_context_unregister) --- accel-pppd/triton/triton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd') diff --git a/accel-pppd/triton/triton.c b/accel-pppd/triton/triton.c index d4c21e2..8bde56d 100644 --- a/accel-pppd/triton/triton.c +++ b/accel-pppd/triton/triton.c @@ -230,7 +230,7 @@ static void ctx_thread(struct _triton_context_t *ctx) } spin_lock(&ctx->lock); - if (ctx->need_close) { + if (ctx->need_close && !ctx->need_free) { spin_unlock(&ctx->lock); if (ctx->ud->close) { ctx->ud->close(ctx->ud); -- cgit v1.2.3