aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorAxel Haslam <[email protected]>2016-11-09 15:54:00 +0100
committerLinus Walleij <[email protected]>2016-11-11 21:28:07 +0100
commitde7416bcee3f7c9004fff92795a03a46f3f40316 (patch)
tree3b89455382d1802e86fd245cfd26f1b2802e33d5 /scripts/gdb/linux/utils.py
parent95bdb0ea3668d86513376e0e88e88f5c0202acba (diff)
pinctrl: single: check for any error when getting rows
pinctrl_count_index_with_args returns -ENOENT not -EINVAL. The return check would pass, and we would try to kzalloc with a negative error size throwing a warning. Instead of checking for -EINVAL specifically, lets check for any error and avoid negative size allocations. Signed-off-by: Axel Haslam <[email protected]> Acked-by: Tony Lindgren <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions