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

Commit 8233b655 authored by Gjorgji Rosikopulos's avatar Gjorgji Rosikopulos
Browse files

msm: camera: fd: initialize buffer handle on unmap



After unmap ion buff handle is not valid,
initialize to NULL.

Change-Id: Idc8e9f7364f855267549cdc0b11e3b6eb1aaac46
Signed-off-by: default avatarGjorgji Rosikopulos <grosik@codeaurora.org>
parent ee794fa1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -774,6 +774,7 @@ void msm_fd_hw_unmap_buffer(struct msm_fd_buf_handle *buf)

	buf->fd = -1;
	buf->pool = NULL;
	buf->handle = NULL;
}

/*