aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/algos/i2c-algo-bit.c
diff options
context:
space:
mode:
authorTony Lindgren <[email protected]>2012-01-25 00:28:08 +0000
committerLinus Walleij <[email protected]>2012-01-26 13:13:11 +0000
commitb9130b776ee481acbc27a7e56d98df75680de369 (patch)
treeb7933b4d3e562e806c3dc61544352e46f35820cb /drivers/i2c/algos/i2c-algo-bit.c
parentpinctrl: fix pinmux_hog_maps when ctrl_dev_name is not set (diff)
downloadkernel-b9130b776ee481acbc27a7e56d98df75680de369.tar.gz
kernel-b9130b776ee481acbc27a7e56d98df75680de369.zip
pinctrl: add checks for empty function names
This is needed as otherwise we can get the following when dealing with buggy data in a pinmux driver for pinmux_search_function: Unable to handle kernel NULL pointer dereference at virtual address 00000000 ... PC is at strcmp+0xc/0x34 LR is at pinmux_get+0x350/0x8f4 ... As we need pctldev initialized to call ops->list_functions, let's initialize it before check_ops calls and pass the pctldev to the check_ops functions. Do this for both pinmux and pinconf check_ops functions. Signed-off-by: Tony Lindgren <[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