mailbox: tegra: avoid resume NULL mailboxes
authorBitan Biswas <bbiswas@nvidia.com>
Fri, 14 Jun 2019 16:31:01 +0000 (09:31 -0700)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 11 Jul 2019 04:08:44 +0000 (23:08 -0500)
commit20b5d24c7669813ec73589146f7dcefbf259a26a
tree90da1fd417572b74831dc7f7ef1e489fca463c3a
parentb1a399530ca9bc958ac48fe85837c791f89a3be2
mailbox: tegra: avoid resume NULL mailboxes

If Tegra HSP device tree does not have 'shared irqs',
mailboxes pointer is NULL. Add non-NULL HSP mailboxes
check in resume callback before tegra_hsp_mailbox_startup()
call and prevent NULL pointer exception.

Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/tegra-hsp.c