summaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg/rpmsg_internal.h
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-09-27 23:36:27 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-09-28 05:11:11 +0200
commit940c620d6af8fca7d115de40f19870fba415efac (patch)
tree8a54a9e18eaa4ccfb6687c22880407a16f4af879 /drivers/rpmsg/rpmsg_internal.h
parentrpmsg: glink: Remove chunk size word align warning (diff)
downloadlinux-940c620d6af8fca7d115de40f19870fba415efac.tar.xz
linux-940c620d6af8fca7d115de40f19870fba415efac.zip
rpmsg: smd: fix memory leak on channel create
Currently a failed allocation of channel->name leads to an immediate return without freeing channel. Fix this by setting ret to -ENOMEM and jumping to an exit path that kfree's channel. Detected by CoverityScan, CID#1473692 ("Resource Leak") Fixes: 53e2822e56c7 ("rpmsg: Introduce Qualcomm SMD backend") Cc: stable@vger.kernel.org Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/rpmsg/rpmsg_internal.h')
0 files changed, 0 insertions, 0 deletions