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

Commit 02170baa authored by vgattupa's avatar vgattupa
Browse files

msm: ADSPRPC: Fix return value when dsp capabilities


is not supported

Use new variable to find is dsp capability support
was successful.
Fix regression issue of 3657372.

Change-Id: Idb427f53ed8f23a0c2a60852457f7721f1ebca87
Signed-off-by: default avatarvgattupa <vgattupa@codeaurora.org>
parent 4986a9f5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3951,7 +3951,7 @@ static long fastrpc_device_ioctl(struct file *file, unsigned int ioctl_num,
	} i;
	void *param = (char *)ioctl_param;
	struct fastrpc_file *fl = (struct fastrpc_file *)file->private_data;
	int size = 0, err = 0;
	int size = 0, err = 0, req_complete = 0;
	uint32_t info;
	static bool isQueryDone;

@@ -4155,8 +4155,8 @@ static long fastrpc_device_ioctl(struct file *file, unsigned int ioctl_num,
		if (err)
			goto bail;
		if ((fl->cid == CDSP_DOMAIN_ID) && !isQueryDone) {
			err = fastrpc_update_cdsp_support(fl);
			if (!err)
			req_complete = fastrpc_update_cdsp_support(fl);
			if (!req_complete)
				isQueryDone = true;
		}
		break;