rpmsg: Fix rpmsg_create_ept return when RPMSG config is not defined
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Mon, 12 Jul 2021 12:39:12 +0000 (14:39 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 13 Sep 2021 15:24:31 +0000 (10:24 -0500)
commit537d3af1bee8ad1415fda9b622d1ea6d1ae76dfa
treefef060ea8a22d08b00d550a8311e97350d43aef0
parent08de420a8014ed3fd83b2436f7e8bd9c4fcd9afe
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: 2c8a57088045 ("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>
include/linux/rpmsg.h