diff options
| author | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | 2017-01-09 15:13:23 -0800 |
|---|---|---|
| committer | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | 2017-01-09 16:21:51 -0800 |
| commit | e17f4cf09eaf319b703efa7db4188581dae156f0 (patch) | |
| tree | c02a088f870ddf671aba9e45a7880c11dda4a684 /include/linux/timerqueue.h | |
| parent | 79a1a55cf8ff6e4db05ff13ce5ab6fc2c0ce9dd9 (diff) | |
qpnp-pin: Fix null pointer access in qpnp_pin_debugfs_create()
qpnp_pin_debugfs_create() is going through all the child nodes
to create debugfs entries whereas the allocation for q_spec is
made only for available child nodes. This leads to a null pointer
access when CONFIG_GPIO_QPNP_PIN_DEBUG is selected in defconfig.
Fix it by using number of gpios available under each gpio chip
which was populated from the available child count already.
Change-Id: I17cbeeba158d34180763087103da4b03e01f7c90
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
