mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "msm: camera: ife: pagefault_ops access protected with mutex_lock" into camera-kernel.lnx.4.0
This commit is contained in:
commit
1eccc13e1e
1 changed files with 2 additions and 0 deletions
|
|
@ -297,6 +297,7 @@ int cam_context_dump_pf_info(struct cam_context *ctx,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
mutex_lock(&ctx->ctx_mutex);
|
||||
if ((ctx->state > CAM_CTX_AVAILABLE) &&
|
||||
(ctx->state < CAM_CTX_STATE_MAX)) {
|
||||
if (ctx->state_machine[ctx->state].pagefault_ops) {
|
||||
|
|
@ -307,6 +308,7 @@ int cam_context_dump_pf_info(struct cam_context *ctx,
|
|||
ctx->dev_hdl, ctx->state);
|
||||
}
|
||||
}
|
||||
mutex_unlock(&ctx->ctx_mutex);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue