Commits
Axel Haslam committed ae8519292d6
pinctrl: single: check for any error when getting rows commit de7416bcee3f7c9004fff92795a03a46f3f40316 upstream. 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> Signed-off-by: Nishanth Menon <nm@ti.com>