gpio: mxc: Unlock on error path in mxc_flip_edge()
authorDan Carpenter <error27@gmail.com>
Tue, 24 Jan 2023 15:20:26 +0000 (18:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:47 +0000 (08:34 +0100)
commit699378c56b1d2f4123ba4ef5f49392bc86754699
treea1da7cb7944b192f167ea64dc7197ead691f806f
parentb51e3f5e86d8bff34e8c8c83fb1dc2d228173c4b
gpio: mxc: Unlock on error path in mxc_flip_edge()

[ Upstream commit 37870358616ca7fdb1e90ad1cdd791655ec54414 ]

We recently added locking to this function but one error path was
over looked.  Drop the lock before returning.

Fixes: e5464277625c ("gpio: mxc: Protect GPIO irqchip RMW with bgpio spinlock")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-mxc.c