staging: vchiq_core: handle NULL result of find_service_by_handle
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 23 Jan 2022 20:02:22 +0000 (21:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:30:16 +0000 (16:30 +0100)
commitca225857faf237234d2fffe5d1919467dfadd822
tree1730e8694ab39fbed1e5906c98701b6f2606d047
parentaa899e686d442c63d50f4d369cc02dbbf0941cb0
staging: vchiq_core: handle NULL result of find_service_by_handle

In case of an invalid handle the function find_servive_by_handle
returns NULL. So take care of this and avoid a NULL pointer dereference.

Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1642968143-19281-18-git-send-email-stefan.wahren@i2se.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c