Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1308294pxk; Mon, 31 Aug 2020 15:59:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX8TaYdK4e45CdZRI+xU51XpGDYuwValDrgc7vO10fg+fLnUaZdH5IC8d2pTwqUwhLlBJj X-Received: by 2002:aa7:d4cb:: with SMTP id t11mr3091874edr.223.1598914770417; Mon, 31 Aug 2020 15:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598914770; cv=none; d=google.com; s=arc-20160816; b=ERCAdwY3W+/MZoXDwCkWVEIrpD7TFEbAA7ezwCgir8w3y8x333ZUww3EfmuMkVlSOn goYP9xa4vIhjhayKq7CJoecBula8znV3NfikOJPXF7ptBHK8GD6C0auPSW3IueybswHZ WrupWww1DprgGog+P6ltsvlaVO3aI5XwHFhh9+XtmHz1Vcoa99hugaXkoIKwvZAboiKn ui8nsCCFOnKSSHzT/r3606kIYc64+Qqu0gJ+3fO+DASKQVfjGBK69gNBTfvM2AAbIVm4 gqNQ1kthqrWUCVgurJwYTxY+Vrj10AnHZBWQvPa5WrRiq/gI8D9P+jVmNERwFwSOsHea RVzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hv3iIpISK+Eauvn2X+pBHs6mFWEi7dy0S6XImcuWXSA=; b=oLq/q5zEhLbuMHkc2n6rNi5g19XVtsv3XqiAz7vOwFvwNEY+g2/TxOPJjDVKkp1Uwk YwrNyBsOVcVk2yX/uKUP3kEw4OFCMFdSrHxPRputq9YtE6raMxSeyrOyqD9Ddi+/a7g+ cdlPDii1o8/PGeqYMH4P/dC3FzxUUE6TIP0TeUTQDT75K7pBESgSnoOEuAMNwWoiL162 3ITgMZxC4GLXHZZg+7Y+amkOO54x81ZCrasKmZYvk/5F/p0jyUBcsPOKnnPikTByYNdS 2P8ocvR2UQU9LKISFW7Or1x+0RRPfT2vTjd5ML3ZsIAnRhkj3VyE8W5+WX5iIIWngNkb ZeEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OoSQtxW0; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si6612158eje.337.2020.08.31.15.59.07; Mon, 31 Aug 2020 15:59:30 -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=@linaro.org header.s=google header.b=OoSQtxW0; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729012AbgHaViC (ORCPT + 99 others); Mon, 31 Aug 2020 17:38:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726490AbgHaViC (ORCPT ); Mon, 31 Aug 2020 17:38:02 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94128C061575 for ; Mon, 31 Aug 2020 14:38:01 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id 2so600359pjx.5 for ; Mon, 31 Aug 2020 14:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hv3iIpISK+Eauvn2X+pBHs6mFWEi7dy0S6XImcuWXSA=; b=OoSQtxW0+3StDvjlRlEx76r1riZgAyXM6VLcswEInCWblGV3xuGwJyaBg0whjjotcM wbH5LSI2btvaYWjdAMl8iD8+jfMtNajn/k+jdCapSLxs2PUL9hFiwcbCyWlG2CEiNyuE imvA+k5Cp1q54kbpN6IFAXldiwPGnNiDWDg19+L1/3R7QHHB5U7xuReYGKicSFPbD3vu T10liVf2z2TtjFiLG9Ie/jgxDwgxN7vRdpL2r99IO5n4U0S6pPseE5xhSbb6AJU/JT3q e47+qDo+iusgo3/v0drWT23NdWz5Cb7f8ftbffL7SD4KUSm1r5UVc66381v8afJ6BXnB uPpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hv3iIpISK+Eauvn2X+pBHs6mFWEi7dy0S6XImcuWXSA=; b=D6Pv3vOs/muLSciD9ZSNvUBUc65W8XNTMw0ZGxUAsPJWDtXvEOyCuJSKew5Ygkg9Zf SEhGijfJLoFYQ0hXxbHsKo9jSudUS4L2QhPI3eIyLlh8lPJJcT8hZzyL6etU6ZMlNAYz aeS994Tq5PPu1ELgqDZlH18riGgBc1o4rorAkAuzKuAVwmFp8kkS13vEb0GbRRcYw7MH dqwmvKuoilgRBg1cu2ghuyoGYi6RYBvgtnauwDmdzZKkrtXOwqSsQXupx/MepPFkdBc+ M7uFynGHwWdzcADaXpNvy35TyGUknWt6aNXeDNhynkzY1EKH7fPatjjiBwj5cdxWCjS1 J5iA== X-Gm-Message-State: AOAM532iSl1QFS8bwCUvG7uF1ron0Hz4wmUJyA+ea6n28NFqCTkeMi1N cLkdUi6LBmuybY6hmkoSdPFasE/UooPB8w== X-Received: by 2002:a17:90a:fe04:: with SMTP id ck4mr1235872pjb.210.1598909880687; Mon, 31 Aug 2020 14:38:00 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id m24sm8525514pgn.44.2020.08.31.14.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 14:37:59 -0700 (PDT) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: linux-remoteproc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] remoteproc: stm32: Fix pointer assignement Date: Mon, 31 Aug 2020 15:37:58 -0600 Message-Id: <20200831213758.206690-1-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the assignment of the @state pointer - it is obviously wrong. Fixes: 376ffdc04456 ("remoteproc: stm32: Properly set co-processor state when attaching") Reported-by: kernel test robot Signed-off-by: Mathieu Poirier --- drivers/remoteproc/stm32_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index f4da42fc0eeb..d2414cc1d90d 100644 --- a/drivers/remoteproc/stm32_rproc.c +++ b/drivers/remoteproc/stm32_rproc.c @@ -685,7 +685,7 @@ static int stm32_rproc_get_m4_status(struct stm32_rproc *ddata, * We couldn't get the coprocessor's state, assume * it is not running. */ - state = M4_STATE_OFF; + *state = M4_STATE_OFF; return 0; } -- 2.25.1