]> git.ipfire.org Git - people/arne_f/kernel.git/commit
mailbox: stm32-ipcc: check invalid irq
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 24 Apr 2019 15:51:05 +0000 (17:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:54:04 +0000 (11:54 +0200)
commit102f6e1249fb37639b5d5e1bc8230dfe46f3e49c
treecc06913cc5438a24cf8607a68ba5104dff5d722b
parentc5b2c8249ff356e366883fdab1227576d7fb91cb
mailbox: stm32-ipcc: check invalid irq

[ Upstream commit 68a1c8485cf83734d4da9d81cd3b5d2ae7c0339b ]

On failure of_irq_get() returns a negative value or zero, which is
not handled as an error in the existing implementation.
Instead of using this API, use platform_get_irq() that returns
exclusively a negative value on failure.
Also, do not output an error log in case of defer probe error.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mailbox/stm32-ipcc.c