]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: sh7760: fix IRQ error path
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Sat, 17 Apr 2021 19:05:05 +0000 (22:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:50:12 +0000 (10:50 +0200)
commit5eab8a97eab8d34d782b753c33814295895a18b8
tree39a52686c8a42ac31b62bb56049b75412d0c32b9
parentaad5760ebaff7bd9a87eba58f4c61fb9b89ab11b
i2c: sh7760: fix IRQ error path

[ Upstream commit 92dfb27240fea2776f61c5422472cb6defca7767 ]

While adding the invalid IRQ check after calling platform_get_irq(),
I managed to overlook that the driver has a complex error path in its
probe() method, thus a simple *return* couldn't be used.  Use a proper
*goto* instead!

Fixes: e5b2e3e74201 ("i2c: sh7760: add IRQ check")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-sh7760.c