diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-05-20 15:07:05 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2020-05-20 22:12:07 +0300 |
commit | 7dcef3988eedbfb40e7e95a821966a029a5a465b (patch) | |
tree | 72c8b281affbacff4c0ba0fdd700597c3a82a34c /drivers/remoteproc/stm32_rproc.c | |
parent | 1ec5dbef6803293974f262f69b63f19d2ed4f6ba (diff) | |
download | linux-7dcef3988eedbfb40e7e95a821966a029a5a465b.tar.xz |
remoteproc: Fix an error code in devm_rproc_alloc()
The comments say that this function should return NULL on error and the
caller expects NULL returns as well so I have modified the code to match.
Returning an ERR_PTR(-ENOMEM) would lead to an OOps.
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Fixes: 305ac5a766b1 ("remoteproc: Add device-managed variants of rproc_alloc/rproc_add")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200520120705.GH172354@mwanda
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc/stm32_rproc.c')
0 files changed, 0 insertions, 0 deletions