diff options
author | Axel Haslam <ahaslam@baylibre.com> | 2016-11-09 17:54:00 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-11-11 23:28:07 +0300 |
commit | de7416bcee3f7c9004fff92795a03a46f3f40316 (patch) | |
tree | 3b89455382d1802e86fd245cfd26f1b2802e33d5 /drivers/pinctrl/sh-pfc/pfc-r8a7792.c | |
parent | 95bdb0ea3668d86513376e0e88e88f5c0202acba (diff) | |
download | linux-de7416bcee3f7c9004fff92795a03a46f3f40316.tar.xz |
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 <ahaslam@baylibre.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-r8a7792.c')
0 files changed, 0 insertions, 0 deletions