|
@@ -351,6 +351,7 @@ int cam_context_dump_pf_info(struct cam_context *ctx,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ mutex_lock(&ctx->ctx_mutex);
|
|
if ((ctx->state > CAM_CTX_AVAILABLE) &&
|
|
if ((ctx->state > CAM_CTX_AVAILABLE) &&
|
|
(ctx->state < CAM_CTX_STATE_MAX)) {
|
|
(ctx->state < CAM_CTX_STATE_MAX)) {
|
|
if (ctx->state_machine[ctx->state].pagefault_ops) {
|
|
if (ctx->state_machine[ctx->state].pagefault_ops) {
|
|
@@ -361,6 +362,7 @@ int cam_context_dump_pf_info(struct cam_context *ctx,
|
|
ctx->dev_hdl, ctx->state);
|
|
ctx->dev_hdl, ctx->state);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ mutex_unlock(&ctx->ctx_mutex);
|
|
|
|
|
|
return rc;
|
|
return rc;
|
|
}
|
|
}
|