OSDN Git Service

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 08:21:35 +0000 (09:21 +0100)
commit3e777af50963bc38d816190fe07e79f519d66a0b
treed13a3ab498d67dca8df83a1237c58fadd7dc621e
parent115160ff78d55ff99f0df640debe1ec576afe6a2
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