]> git.baikalelectronics.ru Git - kernel.git/commit
rpmsg: glink: Fix memory leak in qcom_glink_alloc_intent()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Sep 2017 10:34:42 +0000 (13:34 +0300)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 10 Oct 2017 18:22:09 +0000 (11:22 -0700)
commit6ebb1d0209ee35186c305bb853c6d01f18ecd3b9
tree6433e6995806e63206f461a0eb43704fe49c462e
parentd2e07cd62fa3e27bba4ba67e672a1b47c6c567e2
rpmsg: glink: Fix memory leak in qcom_glink_alloc_intent()

We need to free "intent" and "intent->data" on a couple error paths.

Fixes: 23d28d6b00c9 ("rpmsg: glink: Add support for TX intents")
Acked-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_native.c