Skip to content

Commit

Permalink
remoteproc: stm32: Fix pointer assignement
Browse files Browse the repository at this point in the history
[ Upstream commit cb2d8d5 ]

Fix the assignment of the @State pointer - it is obviously wrong.

Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Fixes: 376ffdc ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
mathieupoirier authored and gregkh committed Oct 29, 2020
1 parent cfddd30 commit 388f72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/remoteproc/stm32_rproc.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 388f72e

Please sign in to comment.