]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: greybus: add host device function pointer checks
authorJason Hrycay <jhrycay@gmail.com>
Tue, 20 Dec 2016 20:49:27 +0000 (14:49 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Nov 2017 08:23:27 +0000 (09:23 +0100)
commitb53bab72b9d8f1f07a30774c06685cd6e57e8f69
treecb85a8b732e9dfc2325e707b44a010cb715e5d6e
parent1f5a7caba79eb47207c94bb43c645714bf3e8ebe
staging: greybus: add host device function pointer checks

[ Upstream commit f05a88a39c5b5f226e08e626998bb920723b7d85 ]

Add sanity checks for cport_quiesce and cport_clear before invoking the
callbacks as these function pointers are not required during the host
device registration. This follows the logic implemented elsewhere for
various other function pointers.

Signed-off-by: Jason Hrycay <jhrycay@gmail.com>
Reviewed-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Acked-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/connection.c