rpmsg: Handle invalid parameters in public API
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 19 Oct 2016 00:23:44 +0000 (17:23 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 31 Oct 2016 22:44:57 +0000 (15:44 -0700)
commit93e9324431c9628224886f979dcd59d377b0818a
tree20d499731182c99deb2be6dfbfdac66b5e201429
parentbbd188092e3bd7536583b37e7d7d2e38a65de74d
rpmsg: Handle invalid parameters in public API

There are two cases of possible uninitialized pointer usage in the API,
either the parameters themselves are invalid or we're trying to jump to
functions not required to be implemented by all backends.

Suggested-by: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/rpmsg_core.c