Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2568540lkm; Mon, 20 Sep 2021 18:57:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZUPwHIhqM4ph2ZvXugoJY84mBNAotk1Nw1g8gZTbEdfDxneRz9CLM/NN9fDuh95fAwXYO X-Received: by 2002:a50:cd06:: with SMTP id z6mr32672555edi.12.1632189423782; Mon, 20 Sep 2021 18:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189423; cv=none; d=google.com; s=arc-20160816; b=axCoP5y9T86RYv9IAav2HbMXmdESvZ69CfwC4Cm2Xs8PcbIcVl0LSAL5wBLo9OVAKd o7IniJLpxJ2btuAbCFVVoogj469aPS2tEfYnSS2xQGgOt/c4JD8QIwrJIsEUC3z448R0 I3tnDg4shqePpzOp1RrPITwK6E6a0jxl65s3libHkDVe3xVOxK0bG81h0OlxKKbcpmf2 Tzk2W03jo54CWLlz/9CBW0/w3f0Zaq8/U2Yj+COYa1HFfs81m5Gr3S5p+25vjTB+17F1 FTYeffBIjCwN5JSAdgLF0FHx2K0+1obmuAkiqSyBoLfcPDhm4BJlr6MFJMTLX5T7kWzR 2Vvw== 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=Vsy95Dby5MSz06hAn1Ybr3ChodgJGgJFJRVkbFmeGOk=; b=FhqJdDkR/RdmIM4xOO/UOFmnOHqEgzNSxHdB4WJ3huAg+rzBLL8pHL6tSHuYykfJAS K4GCnSOx9hZYsPx/Opp1U+t2jm7Gn5e/mtJ+wmtx1vFrfQkrKt2yCmQqnRhotjL2zzLS Ut0GhEr6zG+yvvyu8vbDysJMMGpUUwszHEnJOeCH6u+TxynNV9/rkOyQGsm/txrVMTBV Dj4E56gZVZ3bK7qVCEPzwkA/P6m+mkShe7BLFifpihsVrTYsMuo6gT83aoBmFuytg1iW 9Jqj+6f2/koMbQOms9dXwyb4o7VigQFPVUI+uHRJewuXZtyCvNNQ14YhmkHSOhGfamuS h6aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jxDsIvxr; 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 v8si18112006ejv.188.2021.09.20.18.56.34; Mon, 20 Sep 2021 18:57:03 -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=jxDsIvxr; 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 S1351712AbhITSUH (ORCPT + 99 others); Mon, 20 Sep 2021 14:20:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:35776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376368AbhITSMJ (ORCPT ); Mon, 20 Sep 2021 14:12:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 617E56128E; Mon, 20 Sep 2021 17:20:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158429; bh=Hxw1AH0oCOAJhHrcdjjBB0czoB7m10ulqxwFKZ23lqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jxDsIvxrc8eq5KlvLcJQ4HaBFLzwjT7aroIYv6t5OabXxxzQYZwUvznLdt9FSGGSi dfQoXTfK6IfEpG2wSqg04XdnrmxQwWpj/m4KuKVx0jSA26XJsX0TVtm4iymGUnTLC2 6ri/ps3NuRS0mNKQAwZOJUVKKnyNo/SSNKgRxAyY= 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.4 120/260] media: TDA1997x: fix tda1997x_query_dv_timings() return value Date: Mon, 20 Sep 2021 18:42:18 +0200 Message-Id: <20210920163935.206498390@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 1088161498df..18a2027ba145 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