kernel-fxtec-pro1x/drivers/pinctrl
Tony Lindgren 9e2551e10b pinctrl: fix pinmux_hog_maps when ctrl_dev_name is not set
The ctrl_dev_name is optional for struct pinmux_map assuming
that ctrl_dev is set. Without this patch we can get:

Unable to handle kernel NULL pointer dereference at virtual
address 00000000
...
(pinmux_hog_maps+0xa4/0x20c)
(pinctrl_register+0x2a4/0x378)
...

Fix this by adding adding a test for map->ctrl_dev.
Additionally move the test for map->ctrl_dev earlier
to optimize out the loop a bit.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2012-01-26 14:13:05 +01:00
..
core.c pinctrl: free debugfs entries when unloading a pinmux driver 2012-01-24 23:03:02 +01:00
core.h pinctrl: free debugfs entries when unloading a pinmux driver 2012-01-24 23:03:02 +01:00
Kconfig pinctrl: rename U300 and SIRF pin controllers 2012-01-03 09:10:08 +01:00
Makefile pinctrl: rename U300 and SIRF pin controllers 2012-01-03 09:10:08 +01:00
pinconf.c pinctrl: fix pinconf_pins_show iteration 2012-01-20 17:55:49 +01:00
pinconf.h pinctrl: add a pin config interface 2012-01-03 09:10:04 +01:00
pinctrl-coh901.c pinctrl/coh901: driver to request its pins 2012-01-03 09:10:04 +01:00
pinctrl-sirf.c pinctrl: remove unnecessary max pin number 2012-01-03 09:10:09 +01:00
pinctrl-u300.c pinctrl: remove unnecessary max pin number 2012-01-03 09:10:09 +01:00
pinmux.c pinctrl: fix pinmux_hog_maps when ctrl_dev_name is not set 2012-01-26 14:13:05 +01:00
pinmux.h