]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: ab8500: Remove SYSCLKREQ from enum ab8505_regulator_id
authorStephan Gerhold <stephan@gerhold.net>
Wed, 6 Nov 2019 17:31:25 +0000 (18:31 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 7 Nov 2019 13:10:08 +0000 (13:10 +0000)
commita437b974116824e9b08ea53566eed9eed15d72cb
treeb44a42e43b5e03d0c5f66dab00a68f35266911fa
parentfebc706e9e27f5685d4809e752d852e7569a6b80
regulator: ab8500: Remove SYSCLKREQ from enum ab8505_regulator_id

Those regulators are not actually supported by the AB8500 regulator
driver. There is no ab8500_regulator_info for them and no entry in
ab8505_regulator_match.

As such, they cannot be registered successfully, and looking them
up in ab8505_regulator_match causes an out-of-bounds array read.

Fixes: e29fe8a9f3c9 ("regulator: ab8500: add support for ab8505")
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20191106173125.14496-2-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regulator/ab8500.h