]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
rpmsg: virtio_rpmsg_bus: fix announce for devices without endpoint
authorHenri Roosen <henri.roosen@ginzinger.com>
Fri, 2 Jun 2017 11:35:51 +0000 (13:35 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 25 Jun 2017 21:35:02 +0000 (14:35 -0700)
commitb2599ebffb2d32e051669c0a94f8e363ad7a2e8b
treecf5c2a60d6b6e32367fe1d1c878bf778e0c73df5
parentb4f8e52b89f69f5563ac4cb9ffdacc4418917af1
rpmsg: virtio_rpmsg_bus: fix announce for devices without endpoint

A device might not have an endpoint assigned. This patch checks if
rpdev->ept has a value before dereferencing or using it.

Signed-off-by: Henri Roosen <henri.roosen@ginzinger.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/virtio_rpmsg_bus.c