Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2565333lkm; Mon, 20 Sep 2021 18:51:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNqCAVPsHcPB3eIGkbjAbzklTgy8D2lC2UREGK+oJ3shLKveNbVtkujtRUbpCGaXCMtSdj X-Received: by 2002:a17:906:d04b:: with SMTP id bo11mr31789606ejb.513.1632189092594; Mon, 20 Sep 2021 18:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189092; cv=none; d=google.com; s=arc-20160816; b=0CMDGDut/Hd4yUxK7nCSMw6mBalm3HSkrjyQDjcwwRwtLE3fTr6z3ZD9cxpCMK27mm OX6/WtSetlIIoI1Mlp+1y7BLfiiO3Ow+7rJdD4elj4b8WrghsCFpHevJ0xVWpZg/Dy6N 8KHZTwBpqzbszcxMajhisjjMs4vnR8nStsuW2MyFiUrSk79mvpYDHPn11iSyLFrxdj9v vPIqdVPDT4+IQ0u3kwUzPCSI+e0Exrqtk5yLSQOH6rucb5uncPzwpvyFg+6JHPOBcEwv Pc6QSF4BZVi6+azLxE/7fGvVzEISiJ0N0GDQp4qodEWXXqq7O8stAcuJDmUvq4m8BN1t WtKQ== 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=sJwit4AZNSeWzEqyL0XGHcGT64h93qVj0y0R/UMt9EI=; b=Jq5YK6fr9FmrjJBj3Mwc+3MLMvmuR5s8t9M+qZMmvh2HzelCim2JLv4zkI2dhCA+UP +i2Hs8tR1de6LTfBNLhsNEsAzX9qFioHzLo7arrPEtVVQjHWEiri8bQXA403yFXkvsuJ DDbPmeCmpU2sKkoR5MPHlNlPA8CEo+jn8AvcsTGH9pY8LxfCC0goTDHOlT0uISPjVOCs lek0D6zI72HsPRKG9m/56mgfu++1wGZRfR8L1GMhsssLQaSxeIPotBOjUXcIXkIpnJT8 i9VuLzCh2OWtk5a1oI4IeuqjHYDl+27Z5/eAj9dsV/kRWkBBcB6tVwF3GrTZKt3FGsd0 ywUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Gi4wadgj; 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 bi23si18409857ejb.186.2021.09.20.18.50.42; Mon, 20 Sep 2021 18:51:32 -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=Gi4wadgj; 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 S1347695AbhITR6B (ORCPT + 99 others); Mon, 20 Sep 2021 13:58:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:54536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354870AbhITRvz (ORCPT ); Mon, 20 Sep 2021 13:51:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8EBC1619E4; Mon, 20 Sep 2021 17:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632157951; bh=YtDaJuYubfgYpaQedDpj0+71Qp+LIXDvhC/2ZLAxtqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gi4wadgjWdd5XIyJ9EgpkdQst+BjBKI5r+eMtOPiJiM7+WB09Z60vv5gLOZeg3v+w 5iBFb9XFthl36aTlYKu60RzF67lLyQ7FG4AsUrHY/tACSLOWdq3NDtMi93u7veedMO gh2oWFIPaKYFjBmx3e39REcvi6t9vcHgRwV8UEx4= 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 4.19 209/293] media: TDA1997x: fix tda1997x_query_dv_timings() return value Date: Mon, 20 Sep 2021 18:42:51 +0200 Message-Id: <20210920163940.428659569@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163933.258815435@linuxfoundation.org> References: <20210920163933.258815435@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 dab441bbc9f0..4f8dc3f56785 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