Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1713366pxb; Thu, 16 Sep 2021 13:43:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGTYJLTIvjVjAeCQbNQNu0sEjTgn9HeMF5SqKi+fZVAWq9jBcNWesYv3aq5lXHudom+SKD X-Received: by 2002:a50:9d44:: with SMTP id j4mr206235edk.173.1631824991878; Thu, 16 Sep 2021 13:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631824991; cv=none; d=google.com; s=arc-20160816; b=RAQQjvePKFirfExABX/ew7aEaCJD2OE6zTNE2+hmxIP62sg5MBS/8Ge/qm1Oue8ado 2B9BaV7pe0B9MP2JdtXw917jjlflJmFmHXaX6Y9b3vC6z7XgwoSdFzu9YxjrXw1vWv1H up6WGcc3LXSEVoXwHtQaM3ZpsymQZEM5dZmpVG5hSw9iNVVulLTlX1Ux/6Mv/pOjLmQq uxPr+tqiSZHK9PiV2BUMBsaeczIzPrdHxaVfm3Ashp8Gr1V1II8YVmDy9ehzKr9tiHuw OLwfDVbgYpow/QtN2gEaFgNIE/y6dZLU1xnsBOc6+cVy3glzKdrENp46AwYjElukPJsX 5l5A== 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=sufHbWT7rX21NFOTjnKlwu4YpIdv5lrVUEy7kTYQKZc=; b=MKBoBp0tQRrI9XSw6aCNk9E/CCR9pXaOXXPAc65ihbvfancMi294rZwljej4XtmVSa HuUPeKyrg0rinbO0LjTKr/v/RpWQXLmPhKA13+NcQ6QhsDLnJonRyY1gwlATyaotV6Q4 IfJULkXSz0IP6tzVm0rBsb9PZuF1O4xPK94j33dBJdrix57Kjo/6Q2lwbBwMnVkJZuPG 0mEfDHJQoeSmAh3Z7CW4H9hAP2HS+GHanYguPsZUyB93GSioOVDScMKWphMq0uZwG6h9 CkAe+brU7GevR4Xia50b40HHVeHf/lcRyoee51fByezWB5SvYE9gbhhffKE9tNfYE32W Q+Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vZm2gJob; 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 n21si4430240edt.292.2021.09.16.13.42.47; Thu, 16 Sep 2021 13:43:11 -0700 (PDT) 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=vZm2gJob; 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 S237780AbhIPQ0K (ORCPT + 99 others); Thu, 16 Sep 2021 12:26:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:55356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236296AbhIPQSa (ORCPT ); Thu, 16 Sep 2021 12:18:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 916A0613AB; Thu, 16 Sep 2021 16:12:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808767; bh=2mOwxmgFZCtHQ0+2X8MGSLYTgNI7A/inLgvNKnDqod0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vZm2gJobH6O+h/IqAHpilAJNYsPJXs0lLK7Ya8+dIxFrhsWfXFTnMxJDr17zdMOzJ X9MHkqjhN8mcSMtGHaorcIIZWpILY0EwtYB8Qj1TdfbarYvCa8lCBHsmUH9NGMvoiK NFdw/f93JsP7Yvp49VTVxmT0hqPbJiuUBN60RqCA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Krzysztof=20Ha=C5=82asa?= , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.10 182/306] media: TDA1997x: fix tda1997x_query_dv_timings() return value Date: Thu, 16 Sep 2021 17:58:47 +0200 Message-Id: <20210916155800.280958852@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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: Krzysztof Hałasa [ Upstream commit 7dee1030871a48d4f3c5a74227a4b4188463479a ] Correctly propagate the tda1997x_detect_std error value. Signed-off-by: Krzysztof Hałasa Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/tda1997x.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/tda1997x.c b/drivers/media/i2c/tda1997x.c index 9554c8348c02..17cc69c3227f 100644 --- a/drivers/media/i2c/tda1997x.c +++ b/drivers/media/i2c/tda1997x.c @@ -1695,14 +1695,15 @@ static int tda1997x_query_dv_timings(struct v4l2_subdev *sd, struct v4l2_dv_timings *timings) { struct tda1997x_state *state = to_state(sd); + int ret; v4l_dbg(1, debug, state->client, "%s\n", __func__); memset(timings, 0, sizeof(struct v4l2_dv_timings)); mutex_lock(&state->lock); - tda1997x_detect_std(state, timings); + ret = tda1997x_detect_std(state, timings); mutex_unlock(&state->lock); - return 0; + return ret; } static const struct v4l2_subdev_video_ops tda1997x_video_ops = { -- 2.30.2