remoteproc: stm32: Fix pointer assignement
authorMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 31 Aug 2020 21:37:58 +0000 (15:37 -0600)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 15 Sep 2020 03:45:57 +0000 (03:45 +0000)
Fix the assignment of the @state pointer - it is obviously wrong.

Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Fixes: 376ffdc04456 ("remoteproc: stm32: Properly set co-processor state when attaching")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200831213758.206690-1-mathieu.poirier@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/stm32_rproc.c

index f4da42fc0eeb1423dabbde2802f616a6006a8426..d2414cc1d90d63b752754ba7231a314bb982406b 100644 (file)
@@ -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;
        }