Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e42e6cb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "misc: liquid_dock: Check for NULL notifier parameter"

parents d2d9cb96 f25bc4cd
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -37,8 +37,11 @@ static BLOCKING_NOTIFIER_HEAD(dock_notifier_list);
 */
 */
void register_liquid_dock_notify(struct notifier_block *nb)
void register_liquid_dock_notify(struct notifier_block *nb)
{
{
	if (!nb)
		return;

	/* inform new client of current state */
	/* inform new client of current state */
	if (nb && nb->notifier_call)
	if (nb->notifier_call)
		nb->notifier_call(nb, docked, NULL);
		nb->notifier_call(nb, docked, NULL);


	blocking_notifier_chain_register(&dock_notifier_list, nb);
	blocking_notifier_chain_register(&dock_notifier_list, nb);