Skip to content

Commit 537d3af

Browse files
arnopoandersson
authored andcommitted
rpmsg: Fix rpmsg_create_ept return when RPMSG config is not defined
According to the description of the rpmsg_create_ept in rpmsg_core.c the function should return NULL on error. Fixes: 2c8a570 ("rpmsg: Provide function stubs for API") Signed-off-by: Arnaud Pouliquen <[email protected]> Reviewed-by: Mathieu Poirier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 08de420 commit 537d3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/rpmsg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static inline struct rpmsg_endpoint *rpmsg_create_ept(struct rpmsg_device *rpdev
231231
/* This shouldn't be possible */
232232
WARN_ON(1);
233233

234-
return ERR_PTR(-ENXIO);
234+
return NULL;
235235
}
236236

237237
static inline int rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len)

0 commit comments

Comments
 (0)