mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 23:24:50 +00:00
906cf29cfa
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
qcom_glink_native.c | ||
qcom_glink_native.h | ||
qcom_glink_rpm.c | ||
qcom_glink_smem.c | ||
qcom_smd.c | ||
rpmsg_char.c | ||
rpmsg_core.c | ||
rpmsg_internal.h | ||
virtio_rpmsg_bus.c |