Commit d3f97bef authored by Harini T's avatar Harini T Committed by Greg Kroah-Hartman
Browse files

mailbox: zynqmp-ipi: Remove dev.parent check in zynqmp_ipi_free_mboxes



[ Upstream commit 019e3f45 ]

The ipi_mbox->dev.parent check is unreliable proxy for registration
status as it fails to protect against probe failures that occur after
the parent is assigned but before device_register() completes.

device_is_registered() is the canonical and robust method to verify the
registration status.

Remove ipi_mbox->dev.parent check in zynqmp_ipi_free_mboxes().

Fixes: 4981b82b ("mailbox: ZynqMP IPI mailbox controller")
Signed-off-by: default avatarHarini T <harini.t@amd.com>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
Signed-off-by: default avatarJassi Brar <jassisinghbrar@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c6cdac3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment