aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2020-04-29 13:56:54 +0000
committerBartosz Golaszewski <[email protected]>2020-05-05 16:24:56 +0000
commit333830aa149a87cabeb5d30fbcf12eecc8040d2c (patch)
tree1667bbad3bc34a8148738fd16d26f0bce8dd8226 /tools/perf/scripts/python
parentgpio: mvebu: Fix probing for chips without PWM (diff)
downloadkernel-333830aa149a87cabeb5d30fbcf12eecc8040d2c.tar.gz
kernel-333830aa149a87cabeb5d30fbcf12eecc8040d2c.zip
gpio: exar: Fix bad handling for ida_simple_get error path
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: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions