Loading drivers/media/platform/msm/camera/cam_core/cam_context.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -355,7 +355,7 @@ int cam_context_handle_start_dev(struct cam_context *ctx, { { int rc = 0; int rc = 0; if (!ctx->state_machine) { if (!ctx || !ctx->state_machine) { CAM_ERR(CAM_CORE, "Context is not ready"); CAM_ERR(CAM_CORE, "Context is not ready"); return -EINVAL; return -EINVAL; } } Loading Loading @@ -384,7 +384,7 @@ int cam_context_handle_stop_dev(struct cam_context *ctx, { { int rc = 0; int rc = 0; if (!ctx->state_machine) { if (!ctx || !ctx->state_machine) { CAM_ERR(CAM_CORE, "Context is not ready"); CAM_ERR(CAM_CORE, "Context is not ready"); return -EINVAL; return -EINVAL; } } Loading Loading
drivers/media/platform/msm/camera/cam_core/cam_context.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -355,7 +355,7 @@ int cam_context_handle_start_dev(struct cam_context *ctx, { { int rc = 0; int rc = 0; if (!ctx->state_machine) { if (!ctx || !ctx->state_machine) { CAM_ERR(CAM_CORE, "Context is not ready"); CAM_ERR(CAM_CORE, "Context is not ready"); return -EINVAL; return -EINVAL; } } Loading Loading @@ -384,7 +384,7 @@ int cam_context_handle_stop_dev(struct cam_context *ctx, { { int rc = 0; int rc = 0; if (!ctx->state_machine) { if (!ctx || !ctx->state_machine) { CAM_ERR(CAM_CORE, "Context is not ready"); CAM_ERR(CAM_CORE, "Context is not ready"); return -EINVAL; return -EINVAL; } } Loading