]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: stm32: Fix bad function call
authorAlexandre TORGUE <alexandre.torgue@st.com>
Tue, 30 May 2017 14:43:04 +0000 (16:43 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 Jun 2017 08:51:54 +0000 (10:51 +0200)
commit7806051dee34065bcf4c8e42a05eeab4807c1382
treea0931b5edce582e10a13aff15e3ff6cff34442e5
parent1e1b37370f85f8a2a1d9d2b25324a65174017a96
pinctrl: stm32: Fix bad function call

In stm32_pconf_parse_conf function, stm32_pmx_gpio_set_direction is
called with wrong parameter value. Indeed, using NULL value for range
will raise an oops.

Fixes: e79936342039 ("pinctrl: Add STM32 MCUs support")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c