summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/mediatek/mt8173.dtsi
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-04-29 16:56:54 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-03 09:21:19 +0300
commit750f47a6586b3da0ad317adcbaf65a92a66dfa45 (patch)
treed664aac3ece4912119b6d5a9d62a807bac9b5116 /arch/arm64/boot/dts/mediatek/mt8173.dtsi
parent5242e3850b1c4c32e9b313b4d5860958382fa5ab (diff)
downloadlinux-750f47a6586b3da0ad317adcbaf65a92a66dfa45.tar.xz
gpio: exar: Fix bad handling for ida_simple_get error path
[ Upstream commit 333830aa149a87cabeb5d30fbcf12eecc8040d2c ] The commit 7ecced0934e5 ("gpio: exar: add a check for the return value of ida_simple_get fails") added a goto jump to the common error handler for ida_simple_get() error, but this is wrong in two ways: it doesn't set the proper return code and, more badly, it invokes ida_simple_remove() with a negative index that shall lead to a kernel panic via BUG_ON(). This patch addresses those two issues. Fixes: 7ecced0934e5 ("gpio: exar: add a check for the return value of ida_simple_get fails") Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm64/boot/dts/mediatek/mt8173.dtsi')
0 files changed, 0 insertions, 0 deletions