]> git.baikalelectronics.ru Git - kernel.git/commit
rpmsg: rpmsg_create_ept() returns NULL on error
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 13 Feb 2017 08:44:27 +0000 (00:44 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 13 Feb 2017 08:52:54 +0000 (00:52 -0800)
commit9a1d5971d070a3be039478afe3e121160ac01d6c
treee2b55e83225bd8851d386ab91e813caa1850c57d
parentb97aba33c24253935e14f7dcf5a637b4a424cc84
rpmsg: rpmsg_create_ept() returns NULL on error

The parameter validation incorrectly returned an ERR_PTR(), which is not
handled by the callers to rpmsg_create_ept(), per the definition NULL
should be returned.

Fixes: 9e321ea9e87e ("rpmsg: Handle invalid parameters in public API")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/rpmsg_core.c