Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 657bebcb authored by Trishansh Bhardwaj's avatar Trishansh Bhardwaj
Browse files

msm: camera: Reset last_flush_req on release



It is possible that context is released immediately after flush. In this
case last_flush_req does not reset to 0, so in next session all request
smaller then last_flush_req are rejected.

Change-Id: I44228efde88f5f1d1b90517162dbfd6874842574
Signed-off-by: default avatarTrishansh Bhardwaj <tbhardwa@codeaurora.org>
parent dc547447
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -262,6 +262,7 @@ int32_t cam_context_release_dev_to_hw(struct cam_context *ctx,
	ctx->session_hdl = -1;
	ctx->dev_hdl = -1;
	ctx->link_hdl = -1;
	ctx->last_flush_req = 0;

	return 0;
}