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)
commitb775d158530285c9657a1a0628c139b0dfd0d2e5
tree6433e6995806e63206f461a0eb43704fe49c462e
parent0a7480bd327afcccd7263be5b485f85943e1e903
rpmsg: glink: Fix memory leak in qcom_glink_alloc_intent()

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

Fixes: 933b45da5d1d ("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