Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1952989pxb; Thu, 16 Sep 2021 21:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQAb/FdOZun559F5TU5/Zb0hZDBljhhRoVzZOsHIVX38Fyn0zsNK4HewxLKflFVqmFXLnZ X-Received: by 2002:a05:6e02:1ca6:: with SMTP id x6mr6294754ill.86.1631852614933; Thu, 16 Sep 2021 21:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631852614; cv=none; d=google.com; s=arc-20160816; b=FTm3u+f5mzdlyN4lqvMBiGoqAUMmTDjneJtN1kzaCefL7ZJhtzidMs04cW7UQWAko5 3EeWUbqZ4t26m4VbT3f4hMadXiMP0KhmFTO+Wey4/4+wXbivuCSVrz4P1wHZCmJBcce3 0H6uxdLkTeLaGi8BPPjKKBR2ECz+cwJyJFLp6DQwgBHugeMEn2PyORKINF/iHrs4dtHL ME+1eji9A1n2CWAdvpnyXbAIY3GFfIiiKaBUNg4Cwpckdx92M9qiPm7VvGDrbCzfewT0 By9KX2A8lS0zK2BaZZ4RZeR8n23whUSfG4avgBQ1+CIPnPMPXcvxU89Kqn4JoLb+A+n5 cNoA== 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=tiE+tLawvbY/505Eu1hpFo0ILVd9ho037eoBAT32eMc=; b=Lb+KpGWkhnG6X/IumU1lelxh9udD3cxemhujoRsbJquMaFFSXl5Ddt/oZ+Sca0cFaJ ePi9/r8NOWsWbVK/BcOUi6OMiXO9vVzLzdv5NPVMm5nWBmy1UBFf81q23TCdO4llYrRJ GPlaJvnb2R6G/tVcBKp9iCT7wBUx/zn6tuPwgc8Vi1uXe6JzEXZEFz4pyJPIDRzVVe+e YKZWLMAt5WQbb4pWEWM1J3RlhjdwPPXNGLKNeBvYtaHseCMVkHtfjAhfMZtl9CnWdO4G BZZb9ZmP9NJb45B1CDAzN23DJpkLAkoo1ewuL0BbUkpOwFatE/hkGSnwWZ7/9OP9nQ8A cfYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wiOUxoRK; 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 l3si4197918jas.73.2021.09.16.21.23.23; Thu, 16 Sep 2021 21:23:34 -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=wiOUxoRK; 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 S1344629AbhIPRiC (ORCPT + 99 others); Thu, 16 Sep 2021 13:38:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:47086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352834AbhIPR25 (ORCPT ); Thu, 16 Sep 2021 13:28:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9D0E161BFA; Thu, 16 Sep 2021 16:46:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810765; bh=5q32yhkAPNYcJ0/bDJ0z9LkFtm4G9muoIUDrfS6+4sU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wiOUxoRKPzoF2sa1p0dpjt7DY1yTInH74YFr7o/sfsyu09hdNbmgUAb7ObDuad69Z RCilctc9cerH5E9uyMyhpH/AOKS6WWR5JO1t4ZXMWGlLCbwVwKZAn1KCUED+yzQ7Qp +q+vL2IC8SKtCbse7/reqUyT29W9KJt0r2LnbMbY= 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.14 259/432] media: TDA1997x: fix tda1997x_query_dv_timings() return value Date: Thu, 16 Sep 2021 18:00:08 +0200 Message-Id: <20210916155819.604868633@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@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 3a191e257fad..ef726faee2a4 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