diff options
| author | Mathieu Poirier <[email protected]> | 2020-08-31 21:37:58 +0000 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2020-09-15 03:45:57 +0000 |
| commit | cb2d8d5b196c2e96e29343383c8c8d8db68b934e (patch) | |
| tree | 4cc536e3b5235f3c028ac9ab8f046114775af1c4 | |
| parent | remoteproc: scp: add COMPILE_TEST dependency (diff) | |
| download | kernel-cb2d8d5b196c2e96e29343383c8c8d8db68b934e.tar.gz kernel-cb2d8d5b196c2e96e29343383c8c8d8db68b934e.zip | |
remoteproc: stm32: Fix pointer assignement
Fix the assignment of the @state pointer - it is obviously wrong.
Acked-by: Arnaud Pouliquen <[email protected]>
Fixes: 376ffdc04456 ("remoteproc: stm32: Properly set co-processor state when attaching")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Mathieu Poirier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
| -rw-r--r-- | drivers/remoteproc/stm32_rproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
