linux/drivers/rpmsg
Colin Ian King 906cf29cfa rpmsg: glink: fix null pointer dereference on a null intent
In the case where glink->intentless is true and the call
to qcom_glink_tx fails then we have a condition where ret is
non-zero and intent is null, causing a null pointer deference
when setting intent->in_use to false.  Add an extra check to
only dereference intent if intent is non-null.

Detected by: CoverityScan CID#1455247 ("Explicit null dereferenced")

Fixes: 88c6060f5a ("rpmsg: glink: Handle remote rx done command")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2017-09-04 10:51:49 -07:00
..
Kconfig rpmsg: glink: Introduce glink smem based transport 2017-08-29 20:33:57 -07:00
Makefile rpmsg: glink: Introduce glink smem based transport 2017-08-29 20:33:57 -07:00
qcom_glink_native.c rpmsg: glink: fix null pointer dereference on a null intent 2017-09-04 10:51:49 -07:00
qcom_glink_native.h rpmsg: glink: Make RX FIFO peak accessor to take an offset 2017-08-29 20:34:13 -07:00
qcom_glink_rpm.c rpmsg: glink: Make RX FIFO peak accessor to take an offset 2017-08-29 20:34:13 -07:00
qcom_glink_smem.c rpmsg: glink: Make RX FIFO peak accessor to take an offset 2017-08-29 20:34:13 -07:00
qcom_smd.c rpmsg: qcom_smd: add of_node node to edge device 2017-07-26 09:59:27 -07:00
rpmsg_char.c rpmsg updates for v4.13 2017-07-06 15:38:31 -07:00
rpmsg_core.c rpmsg updates for v4.13 2017-07-06 15:38:31 -07:00
rpmsg_internal.h rpmsg: Driver for user space endpoint interface 2017-01-18 10:43:15 -08:00
virtio_rpmsg_bus.c rpmsg: virtio_rpmsg_bus: fix sg_set_buf() when addr is not a valid kernel address 2017-08-24 15:37:28 -07:00