summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-28 14:06:31 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-28 11:48:15 +0000
commitd4d6373c1109b11c8118340be97ae31b8f94d66a (patch)
tree046e924ca1ea4c65aec700f7a42eb0477f3fb990 /sound
parentcaca6a03d365883564885f2c1da3e88dcf65d139 (diff)
downloadop-kernel-dev-d4d6373c1109b11c8118340be97ae31b8f94d66a.zip
op-kernel-dev-d4d6373c1109b11c8118340be97ae31b8f94d66a.tar.gz
regulator: aat2870: Fix the logic of checking if no id is matched in aat2870_get_regulator
In current implementation, the pointer ri is not NULL if no id is matched. Fix it by checking i == ARRAY_SIZE(aat2870_regulators) if no id is matched. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@kernel.org
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud