From 0c38feb8c00e11b57233d3029230d17a0237b9a5 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 6163b0af..f17ae316 100644 --- a/accel-pppd/triton/triton.c +++ b/accel-pppd/triton/triton.c @@ -229,7 +229,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