Skip to content
Commit 7dcef398 authored by Dan Carpenter's avatar Dan Carpenter Committed by Bjorn Andersson
Browse files

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: default avatarPaul Cercueil <paul@crapouillou.net>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Fixes: 305ac5a7

 ("remoteproc: Add device-managed variants of rproc_alloc/rproc_add")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200520120705.GH172354@mwanda
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 1ec5dbef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment