aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/algos/i2c-algo-bit.c
diff options
context:
space:
mode:
authorTony Lindgren <[email protected]>2012-01-20 15:43:53 +0000
committerLinus Walleij <[email protected]>2012-01-26 13:13:05 +0000
commit9e2551e10b5c7ba550849bd9ed519e498cc30e68 (patch)
treee84e7f61908463ac052faffeca40796d77e5030f /drivers/i2c/algos/i2c-algo-bit.c
parentpinctrl: fix some pinmux typos (diff)
downloadkernel-9e2551e10b5c7ba550849bd9ed519e498cc30e68.tar.gz
kernel-9e2551e10b5c7ba550849bd9ed519e498cc30e68.zip
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 <[email protected]> Acked-by: Stephen Warren <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions