mailbox: mailbox-test: fix null pointer if no mmio
authorFabien Dessenne <fabien.dessenne@st.com>
Fri, 4 Jan 2019 13:47:16 +0000 (14:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:38:31 +0000 (15:38 +0100)
commit517287405bf928638ab7dd30ba2226e51f9cba45
tree1448d627da3756f50084cfb90667b73bdf6f7cf9
parent934ff312e52e3dd4e547c9f6a6367410311347d0
mailbox: mailbox-test: fix null pointer if no mmio

commit 6899b4f7c99c72968e58e502f96084f74f6e5e86 upstream.

Fix null pointer issue if resource_size is called with no ioresource.

Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mailbox/mailbox-test.c