]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:36:14 +0000 (11:36 +0100)
commit7e2638ddb7a50dc5acd1fa98a9042bf019a3a7aa
tree724984793ad1cc6465bae9e7b6b4539bafe5aff0
parent9f3eb0a8a5c401f2c29aa2b3b979bbaae5401190
rpmsg: Fix rpmsg_create_ept return when RPMSG config is not defined

[ Upstream commit 537d3af1bee8ad1415fda9b622d1ea6d1ae76dfa ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/rpmsg.h