Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp385961pxb; Wed, 3 Mar 2021 05:56:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxI5VXkeHuig/VUQFlXuy5EHGenRGGRGGUqrDYwH6kxj/nIE4f1oikFCzwf7HijMV3JIJ6U X-Received: by 2002:a05:6402:22bb:: with SMTP id cx27mr10639321edb.148.1614779763142; Wed, 03 Mar 2021 05:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779763; cv=none; d=google.com; s=arc-20160816; b=UpkOTh2sJ8qZP72Irhhc/lj+UKnyArBpsStDbPergOupIL6Q+JjB/QmreodNtfXrZi YPMRr4xzKKBkDpc/RNOeXQQRIVGlSJWtka3oVfHvbROroGcvhjLtWzqL3L5/JwSjCvZU o8uRDfQ4LzqKIGgSo8rW4AYjFNOWrKTOzTFQfEjdn7InxabNo6xeEO+AB8BCpKIhAslH wLpeCajLO4X07/CbeP1HirIpQQ+9xFHe0jLOzFc+So5bxmAFZNTloA0cMuSMSi/6AMis UwS1uB8Gi96wYKCy4iMz///jGGd5H2sQRT6xl66yg7nEVeT7Iynmb5IbtORANw2vZi40 Wxiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VacfTaFx8LESGzIKNtxUHxPKuK6xM61hISGSUAgiVOU=; b=TqwwvCb/lm82KYNQPFB4Hylyjnmn4bxRFk0gBtxbM4/y2/eSzounzWNlp6abk4PSXB fQxZ2hL+M0eqXCbbyiU0foNnji67Qtu9vz5yEpY6MdCrsL83VGTaClenXg/2Qwfh5GKD 8l7UtkP1oh7xFUV4/6UQsJjTJL3ijivK5zFsTpMSDXrDZgwSenPZuBNwBArr0v4pDxpH 4hnwqm7mrF6RArcfgmk1ZMMSNnXaDC9hxR8c5h8APolDW5hnVYrhshVHjf3zX+FaTSv9 nQplNu0wDpnngnxLXObFeqIvDKKoA6uezEbn+VPGsDaA7XHxxy3OjfmOTbIT/THsBFuq fG2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vGbp91KS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si9559092eda.157.2021.03.03.05.55.30; Wed, 03 Mar 2021 05:56:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vGbp91KS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243011AbhCAUNZ (ORCPT + 99 others); Mon, 1 Mar 2021 15:13:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:33308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236505AbhCARDu (ORCPT ); Mon, 1 Mar 2021 12:03:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 738B564F3E; Mon, 1 Mar 2021 16:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616747; bh=Frsx+3Qe0XcLkuuSfij4oeuMPEwnvn4hMPA/nIAoptI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vGbp91KSICwglYMZGQdp+aJsy8dvO6yQiBu4vn+IUf03pIM59mWWn9D4E+gr4B1pJ n9lgvXDfPb8GVUO+sTlCL9qPo2gPGSYMKWwSQx59P7bLUeLYuzVc4iBA/fHRskQjn+ WmDzhuzrxqFpH1wiUW4mYpScGrIhmZ6QNg7wLvNE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Robert Foss , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.19 081/247] media: camss: missing error code in msm_video_register() Date: Mon, 1 Mar 2021 17:11:41 +0100 Message-Id: <20210301161035.646384986@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 9c67ed2ab299123872be14a3dc2ea44ce7e4538b ] This error path returns success but it should return -EINVAL. Fixes: cba3819d1e93 ("media: camss: Format configuration per hardware version") Signed-off-by: Dan Carpenter Reviewed-by: Robert Foss Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/qcom/camss/camss-video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/qcom/camss/camss-video.c b/drivers/media/platform/qcom/camss/camss-video.c index c9bb0d023db48..e81ebeb0506e4 100644 --- a/drivers/media/platform/qcom/camss/camss-video.c +++ b/drivers/media/platform/qcom/camss/camss-video.c @@ -901,6 +901,7 @@ int msm_video_register(struct camss_video *video, struct v4l2_device *v4l2_dev, video->nformats = ARRAY_SIZE(formats_rdi_8x96); } } else { + ret = -EINVAL; goto error_video_register; } -- 2.27.0