android_kernel_sony_msm8994/drivers/spmi
Kenneth Heitke 4089f81f49 spmi: Add check for NULL and invalid controller pointer
Replace the BUG_ON() check with a NULL pointer check and verify that
the controller type is set appropriately.  This prevents a system crash
due to invalid input.

Change-Id: I858980ad54ba0d764219049a20b4ca3e9b77f72e
Signed-off-by: Kenneth Heitke <kheitke@codeaurora.org>
2013-09-04 17:14:46 -07:00
..
Kconfig gpio: spmi: Remove "depends on ARCH_MSM8974" from QPNP Kconfig entries 2013-09-04 15:19:45 -07:00
Makefile spmi: Debug-fs support for SPMI 2013-09-04 15:37:15 -07:00
qpnp-int.c spmi and gpio: qpnp: add pointer check in qpnp drivers 2013-09-04 17:09:45 -07:00
spmi-dbgfs.c spmi: Add del_controller functionality 2013-09-04 16:48:09 -07:00
spmi-dbgfs.h spmi: Add del_controller functionality 2013-09-04 16:48:09 -07:00
spmi-pmic-arb.c spmi: pmic_arb: Add qpnp-int controller unregistration call 2013-09-04 16:03:37 -07:00
spmi-resources.c spmi: Add spmi_resource for non spmi-dev-container cases 2013-09-04 14:57:31 -07:00
spmi.c spmi: Add check for NULL and invalid controller pointer 2013-09-04 17:14:46 -07:00