Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4695029iob; Sun, 8 May 2022 22:18:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn1+8pBBhJZGK4ofeAKYtbdfHOio1Le/Dl6Xc9D/YIXFF8yUvvleHkPSD4QFWWX7EtQKHS X-Received: by 2002:a65:528a:0:b0:3c6:d2e6:e3a0 with SMTP id y10-20020a65528a000000b003c6d2e6e3a0mr1094785pgp.159.1652073480588; Sun, 08 May 2022 22:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652073480; cv=none; d=google.com; s=arc-20160816; b=bK0n04qep8nX9Vs4/oMFGJ4NEBPsObvCinAEtzT7/3A2qhqHNQi/2sysssH24+emsW 46O83kTamOElA2nPqexJhiejdHpZBtTCtKXT02sUanORvunELK7FgR05vn0uAuNrQY9m jsV2tsuHROCG2daZxIveWqZDmhlOapJ/eKXT7AHBsP0Ynsslgv+j6JN1wgBjKSPQa04n ujqs6aaByMIResNvgNzmlXQFfzBXoRakyV1Z/YgUC0PvtZZYuP/siNM0dUMTfrdpL5hu GPc6DDOGsJgn7ahPKz6IjJhTllEZ+P0XD8KYkFfcKeuxlpUvl0XzO2C4VkGJfxYC/OaV 88Sw== 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=RVZXRmkuVlvY7YQ56J4Nl0jSbsjfYSHNH3LTA15p/+Y=; b=Xk9x+AfxI9S0p5TiePXWKOhqF7RCxIgx6shQrPgoMCa5KPkihrLr+N7Qm2UNLQl4mk DhjJZxBXyu8pzPq8GetKZJeHkp4Blw/pikpyY/JlMDsFSwf0fyJzY54YoxXpcjFToWv4 VVrMFTMgflq0VmfFbJ6XYtrsnibahvcg0pdQxCH1kZvDGeMPEAomTmudgfyA4QLKQ9NY ZXP8KRaCpjlDFAOEtSxgc08RW2oBv4Hgb4Uu+hW74FnySoT+2C64BD3xuXZIWRxCgNu2 HZu6UGPvuTfs4F6D1NT1UmpQ6o2zTnY5LO/6NbrEsXoc29+0IEQ4hgXzh8wAYcwUixMZ jL2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QHiIybnI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nn6-20020a17090b38c600b001dbcf49fbb3si13403613pjb.50.2022.05.08.22.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:18:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QHiIybnI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 350DD149110; Sun, 8 May 2022 22:14:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357060AbiEDROq (ORCPT + 99 others); Wed, 4 May 2022 13:14:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355085AbiEDREI (ORCPT ); Wed, 4 May 2022 13:04:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 318D74DF55; Wed, 4 May 2022 09:52:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BBB8EB82792; Wed, 4 May 2022 16:52:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BBFFC385A5; Wed, 4 May 2022 16:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683160; bh=9vZ4s2S3OkqcFoWeX3a+FHD4PzlE9/XUKS4qPEXLkgI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QHiIybnI2C29u4sqamlPxNHAndYGfUnteVESd4hgdfM9LkjBHBBhawDWoXKtgOF+v 7XMIvmzq5UghN92rQR0SEIHCjnY+SEVU3tmQW0tlwF3voMg5TEYQLAOQRqG9IrQOcG 1B73h0dbJKTp5wa4GLr4gjXKlqOzrfjKdS7/E3Qs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zizhuang Deng , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 5.15 012/177] iio: dac: ad5592r: Fix the missing return value. Date: Wed, 4 May 2022 18:43:25 +0200 Message-Id: <20220504153054.620947004@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zizhuang Deng commit b55b38f7cc12da3b9ef36e7a3b7f8f96737df4d5 upstream. The third call to `fwnode_property_read_u32` did not record the return value, resulting in `channel_offstate` possibly being assigned the wrong value. Fixes: 56ca9db862bf ("iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs") Signed-off-by: Zizhuang Deng Link: https://lore.kernel.org/r/20220310125450.4164164-1-sunsetdzz@gmail.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/dac/ad5592r-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/dac/ad5592r-base.c +++ b/drivers/iio/dac/ad5592r-base.c @@ -523,7 +523,7 @@ static int ad5592r_alloc_channels(struct if (!ret) st->channel_modes[reg] = tmp; - fwnode_property_read_u32(child, "adi,off-state", &tmp); + ret = fwnode_property_read_u32(child, "adi,off-state", &tmp); if (!ret) st->channel_offstate[reg] = tmp; }