Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1526951pxk; Tue, 1 Sep 2020 00:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuMI7/3sh1szHy3IUIhBb0sWhvO2rIeZOKlAeyBVp6RovDfyNBV5bppzo9FmVuroCBi8zJ X-Received: by 2002:a17:906:9356:: with SMTP id p22mr297754ejw.119.1598945176613; Tue, 01 Sep 2020 00:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598945176; cv=none; d=google.com; s=arc-20160816; b=XJlikytA8Vk3Duyh2qPUvOcmBzAvD63AuuXulxUwc+PlnbLUY6RY/KmOkb6o4QKStz SQE7Dhb9Sob74QQplQxb3kfldlGpkyuHR0bfN8hgBF3/+734+Gc/g33Ed7P+/xr0hWwC 9iu3PgJiyG39Hc0pfiAT4KqbY40ndpwHN3Nstc+/ugLYf5FzAL9LAhzPhQk++IO6d0kl JygGWEB+2JDetpz9hlRxMwPUKP0mMRi4J3UdKeCV6XxSo9fHi9tDzfodjrr6x7xTOKYl xCGz875sB3MAOIKPe7mp0gPfyBQZWE6pbp2UPi5gh/APqVR5lVg1I/eWmIkm85XlykGg 79Vg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7hpAwwgoscZtiR1idbag9pcr+1nyLmBycUSgjh28YnQ=; b=EdRaqkT1vuVBRVZ0ztAr5QCT0W711bzwv71UPZPJO1roxy3vXWzymqrySl65lOy+/s jpZcw0QcyzRj2Aq3lMfwImSJk3btStNDvqZhN2jQsV9Yn6P1Ie6f4g9P3m8eIE+dzTXi UrbrqcdFRAz2O9PGiweGTyO3W6qkmyTfZJ6YkWS5WM+1yDqCsAMxdrXqt6VHEmauCKbM Ffjif3dtiI4PfE6Gf7tMR3YLpwfm6fqlM79Nqt8x3iaIbiv0SsN/FrmwLxPE528bd92Z aZ4q4ypro/SLRTmcU/Sz6lQSBqG6trjR3p1YpqGEt1X5yFQnohiKLUXt4cOZzqu9sTyL 121A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=uPbNtBqa; 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=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si203774ejb.563.2020.09.01.00.25.53; Tue, 01 Sep 2020 00:26:16 -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=@st.com header.s=STMicroelectronics header.b=uPbNtBqa; 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=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726124AbgIAHXR (ORCPT + 99 others); Tue, 1 Sep 2020 03:23:17 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:38736 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726006AbgIAHXQ (ORCPT ); Tue, 1 Sep 2020 03:23:16 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0817M1M9027321; Tue, 1 Sep 2020 09:23:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=7hpAwwgoscZtiR1idbag9pcr+1nyLmBycUSgjh28YnQ=; b=uPbNtBqaVV+AczDQTChkUVgk+hTTxCLrEtjOBPLdzl2KCtZ0Ykn5ZVLVN4mgT/aGAvzy ZcVoBt8ZpOGtuU3iyKGfWzPt1R6Ypar8xzdSMHm10PTXYdnaw7OMde1g6DZhiU7JfuFw 0JHRcLIwvWMU2ChlP/mzc8BsnS5Kh1zgXN7unhDgIN+33S4OfQO9I60Tx2o/cWJp1VjA 8ts4IXl96QleSsTnCCaAbBjTxpzdRL3NcA9R7PHKZYNHDURo0tuLxQQyN5q0Q0tX/rt4 LWnvmq+uYSU0eTGOYavA+SAIxJBD746H+kQX3CETWOvy/j17v+xXpvIJQRFihPuPncQe 8A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 337dwh5r8g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 01 Sep 2020 09:23:05 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F2EE510002A; Tue, 1 Sep 2020 09:23:04 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E20B421E67E; Tue, 1 Sep 2020 09:23:04 +0200 (CEST) Received: from lmecxl0889.tpe.st.com (10.75.127.44) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 1 Sep 2020 09:23:03 +0200 Subject: Re: [PATCH] remoteproc: stm32: Fix pointer assignement To: Mathieu Poirier , "ohad@wizery.com" , "bjorn.andersson@linaro.org" , "mcoquelin.stm32@gmail.com" , Alexandre TORGUE CC: "linux-remoteproc@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" References: <20200831213758.206690-1-mathieu.poirier@linaro.org> From: Arnaud POULIQUEN Message-ID: <7d63d684-d675-3812-312f-d6b248e06700@st.com> Date: Tue, 1 Sep 2020 09:23:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200831213758.206690-1-mathieu.poirier@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG7NODE1.st.com (10.75.127.19) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-01_04:2020-09-01,2020-09-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mathieu, On 8/31/20 11:37 PM, Mathieu Poirier wrote: > 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 Acked-by: Arnaud Pouliquen Thanks, Arnaud > --- > 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; > } > >