Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3907224pxb; Tue, 2 Mar 2021 01:24:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwv2DwNV+Ds8UP8FKaDby2c2pg2JEYM5Y4rr4B5r/Ug9Tzz1obBE+teN59P5UpoZlL4TRLh X-Received: by 2002:a17:906:8308:: with SMTP id j8mr3164658ejx.339.1614677051467; Tue, 02 Mar 2021 01:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614677051; cv=none; d=google.com; s=arc-20160816; b=V40S5mvt0UbGFMmUTijb1p8PtCsbRgztRHCv70W8OjKoBGAvMjJAbco2dJOzCGNESO 3RJzlwhErT/pYuaJTHpxQasqvj8Kuj60P///ZjHGlVCGEA3bTof9N6l0vhuxSdj3pdDQ ikLjRstSGSsB7E63QnsG8pkFf5fuRf5ZYvkV9kCdLoCAGtoT/2CtZromuqnx0w4dL2PR CG+ej4ZcjZ0FV7GFlhWNRGtTM1/qhJW2oJUCcHHh0+aplX7EHdBawCb/CdtMGvJPiqsx 0wIA5ABzdCTHN9sh55nzlmQZ8oqFvVHKKsLv7A0KAhAv0Re+FnNvd+X1HqxRlcSUh01/ gTyQ== 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=rXeQqfKCoMCQ2NNXEXXrDu1y18iw6FKXixZpK4sELp4=; b=OLsk0+Kay9uhCokjsODGPmnf0QY9yGny9hj6wJoU0OJNTCpMA3EyYDBUVYGpyxkhx6 aHjMJF7xL0ud15b3ZyWtc5N9ZR2F10gXQTBKamYmzlPG0I8zDnFMpoeShLO0gMW6zSRI owkZMYXDinwroHPN+1zpTxy/QI01Dm2y/+HzW/BDemcakdsxMeCnpVAtEWynOUXB+0ll Q0c4gwftUgk/V6lI1I2gfjL6WJDUYgSX+RPEAlVwGsmSxXHb5VYXjEXaxzt8hoqkhoDm 2NZCeE4IX1JHMN0ewy7IdaEZJMutE7MbxTzuxx97y6B22ivp1cpTuZ+EM5j+O8Wsb/HM +XBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Tlva/tvr"; 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 q17si12803541ejy.390.2021.03.02.01.23.34; Tue, 02 Mar 2021 01:24:11 -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="Tlva/tvr"; 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 S1348699AbhCBBYt (ORCPT + 99 others); Mon, 1 Mar 2021 20:24:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:39680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241280AbhCATJF (ORCPT ); Mon, 1 Mar 2021 14:09:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A100651A1; Mon, 1 Mar 2021 17:11:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618720; bh=Pk9sI8KEEXP6HELEYhD7kTM9rjp13VdcAeXmrm1UWr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tlva/tvrWz+Cf5CcFCEpHYul0aboVs+7DDSI+1knaMuBcJ0PARybJ5Y0w7GkdDqqc hyMMe800thtucH3R7on+Aicc3isCDrzgTo/hVvEeYN2jJAxQGTxEucfi2PEEzV23pr x8TW8/CVpDC+pkbDOrjT4rd8oDZo5Gofn7zhRwFs= 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 5.10 164/663] media: camss: missing error code in msm_video_register() Date: Mon, 1 Mar 2021 17:06:52 +0100 Message-Id: <20210301161149.892611332@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@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 114c3ae4a4abb..15965e63cb619 100644 --- a/drivers/media/platform/qcom/camss/camss-video.c +++ b/drivers/media/platform/qcom/camss/camss-video.c @@ -979,6 +979,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