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

Commit 4e84869e authored by Deva Ramasubramanian's avatar Deva Ramasubramanian
Browse files

msm: vidc: Check if buffers are mapped before validating buffer_info



When buffers are not mapped by the driver (i.e. buffer being used by
kernel client), inst->registered_buffers is usually empty.  As a result,
in *_dqbuf(), binfo is always NULL.  This commit bypasses the NULL check
if buffers aren't being mapped by the driver.

CRs-Fixed: 610866
Change-Id: I111150564549a74f077ba8a7115129f497d734fc
Signed-off-by: default avatarDeva Ramasubramanian <dramasub@codeaurora.org>
parent 90d52535
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -961,7 +961,7 @@ int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b)
		}
	}

	if (!buffer_info) {
	if (!buffer_info && inst->map_output_buffer) {
		dprintk(VIDC_ERR,
			"%s: error - no buffer info found in registered list\n",
			__func__);