mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
rpmsg: Fix rpmsg_create_ept return when RPMSG config is not defined
[ Upstream commit537d3af1be
] According to the description of the rpmsg_create_ept in rpmsg_core.c the function should return NULL on error. Fixes:2c8a570880
("rpmsg: Provide function stubs for API") Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Link: https://lore.kernel.org/r/20210712123912.10672-1-arnaud.pouliquen@foss.st.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
851b622e7b
commit
602ab1fd40
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ static inline struct rpmsg_endpoint *rpmsg_create_ept(struct rpmsg_device *rpdev
|
|||
/* This shouldn't be possible */
|
||||
WARN_ON(1);
|
||||
|
||||
return ERR_PTR(-ENXIO);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline int rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len)
|
||||
|
|
Loading…
Reference in a new issue