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

Commit 895df9f7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc_3x: Fix in handing SYS_ERROR"

parents e4ce806c 72708cb2
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1279,13 +1279,12 @@ void *msm_vidc_open(int core_id, int session_type)

	return inst;
fail_init:
	mutex_lock(&core->lock);
	v4l2_fh_del(&inst->event_handler);
	v4l2_fh_exit(&inst->event_handler);
	vb2_queue_release(&inst->bufq[OUTPUT_PORT].vb2_bufq);

	mutex_lock(&core->lock);
	list_del(&inst->list);
	mutex_unlock(&core->lock);
	vb2_queue_release(&inst->bufq[OUTPUT_PORT].vb2_bufq);

fail_bufq_output:
	vb2_queue_release(&inst->bufq[CAPTURE_PORT].vb2_bufq);