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

Commit 34d1ad8f authored by Jorge Solano Altamirano's avatar Jorge Solano Altamirano
Browse files

msm: vidc: add input check for hfi q6 function



The input parameters may be null. This change adds input checks at
function q6_hfi_iface_eventq_read.

CRs-Fixed: 606516
Change-Id: I801a9d3249e9b97fa218fc29bc3a2a0e7a0d4d3f
Signed-off-by: default avatarJorge Solano Altamirano <jsolano@codeaurora.org>
parent 9c6389a6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2014, 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
@@ -148,7 +148,7 @@ static int q6_hfi_iface_eventq_read(struct q6_hfi_device *device, void *pkt)
	struct q6_iface_q_info *q_info;
	unsigned long flags = 0;

	if (!pkt) {
	if (!device || !pkt) {
		dprintk(VIDC_ERR, "Invalid Params\n");
		return -EINVAL;
	}