diff options
| author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2016-09-13 11:10:48 -0700 |
|---|---|---|
| committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2016-10-31 15:40:26 -0700 |
| commit | 5558abe40041f6db4c310277134c2bf3f86fccfc (patch) | |
| tree | c17ed464850a0d3b9cd87aa1947eff792befdde0 /lib/mpi/mpi-cmp.c | |
| parent | bbd8499b43c68d14ee8d4be46680f59516f81a70 (diff) | |
spmi-pmic-arb: fix a possible null pointer dereference
If "core" memory resource is not specified, the driver could end up
dereferencing a null pointer.
Fix this by returning -EINVAL when core resource is missing.
Change-Id: Id08f7b2e109b6b2963b19dfe07f07cbfb424202b
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
