Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4817436iob; Mon, 9 May 2022 02:15:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp2LZH44N+HFJ8V4vaxQrNzSVVl1LF8Wi3ArCGhH3JxswyFwxJkd/pbs4MncYSTdLL4QTK X-Received: by 2002:a17:90b:1e03:b0:1dc:5a7d:bba8 with SMTP id pg3-20020a17090b1e0300b001dc5a7dbba8mr16996414pjb.156.1652087759127; Mon, 09 May 2022 02:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652087759; cv=none; d=google.com; s=arc-20160816; b=vylSeDCAwKgb0jxxeprycnT+RdvYV5rBOmt419ZZ+9V/X/+euPq0CBJBL0owlvERJZ g/3pktk7sX7S5gaXrUjnri6t40E4u9ePKNUgYLZuAca4bWC1sc46YDbg2Z8MO9E/WZrW sOjn5Qt/Gnsac1QZL3yNbZcJ0lwr6fsVhJ0jPP5n6iul1SQgDeNu6RWHDMZTXKlAmiCo jLV63oNmfspCBwfm6zKpY8hS8b5YgCMUF3qAR2MxqKOBiSaKA40e32I5H5DI00N/hI5E jE5Wv7bRauBW2d8TGcoPPYfvJx9bVsyXLxMweheUQ1zXBRmia4J/fBNg0h+DNZIcN/fF 7tmw== 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=/rnz+bW+T7PgJGxQUSXMf6MV2t8rnwRbGJBFrbQnLdM=; b=vvlQU/WjTfQB7RLZym6eHbQCn0fin7lcqw7hCIoLVfnrrdQgOD7xRuWqdBcVcHlyjW NqA7ZVpwsTWoYNOZNKLuDDEfXqlSBbzNf77mytVXA1ykYlZAuO9tNFqExJf98NBppuPS axaptG1EUIvC0XtuHPACwFdUaokzu6emFSjYQPITrYzenu7KxrL11IzdPsvwAEelAMNP +76uoqQ6Jf6uB4vxBTg8cIre93fANjSeg9dbAWg1TeOrlgUlsXtlJw0GgJrL4O3Rfq8A QGacACPxdqTP/t6IR15LXbHlxEZP7QfC9XwRrgi2RGDf+sG7li2l7NP+BdUATTILGgeR lsAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UuykhxRt; 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 b5-20020a170902e94500b0015830f35108si10568291pll.209.2022.05.09.02.15.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:15:59 -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=UuykhxRt; 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 AD9B718D4CB; Mon, 9 May 2022 02:02:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354290AbiEDQyA (ORCPT + 99 others); Wed, 4 May 2022 12:54:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353685AbiEDQwa (ORCPT ); Wed, 4 May 2022 12:52:30 -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 B7AF2473B2; Wed, 4 May 2022 09:48:40 -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 4F3B7B82752; Wed, 4 May 2022 16:48:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDF68C385A4; Wed, 4 May 2022 16:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651682918; bh=bWIjm8It5BNOSRlnHwW+zxNkTiw7XIoQ7LfvoH41GnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UuykhxRtSebG/qCWzKonwqQZq2RcqYNRnjlXKFs418qPlc/SqgBTnG5gfzH9DIuSX VRtceGhd1r1Og/+nO6rZ6760Efm6ii0JZ01mVi16Qzd5kB9lvTS+ymWF8DBZag4oDY OFo162xnfDj/hK+qd3HXZ78Rl0W2KpnZbfBsZTqI= 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.4 14/84] iio: dac: ad5592r: Fix the missing return value. Date: Wed, 4 May 2022 18:43:55 +0200 Message-Id: <20220504152928.826085238@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504152927.744120418@linuxfoundation.org> References: <20220504152927.744120418@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 @@ -530,7 +530,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; }