On Thu, 29 May 2025 08:33:36 +0200, Krzysztof Kozlowski wrote:
Driver in probe() updates each of 'reg_field' with 'reg_base':
for (i = 0; i < REG_MAX_COUNT; i++) regs[i].reg += reg_base;
'reg_field' array (under variable 'regs' above) is statically allocated, thus each re-bind would add another 'reg_base' leading to bogus register addresses. Constify the local 'reg_field' array and duplicate it in probe to solve this.
[...]
Applied, thanks!
[1/1] leds: flash: leds-qcom-flash: Fix registry access after re-bind commit: fab15f57360b1e6620a1d0d6b0fbee896e6c1f07
-- Lee Jones [李琼斯]