summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-06-20 14:36:49 +0200
committerMark Brown <broonie@kernel.org>2019-06-24 17:30:34 +0100
commitb28944c6f6d3951f0c8f23f90c83ef741d30bfca (patch)
tree72ca08ad15fe0217c4bc5ea208b0ec15cb2bba8d /Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt
parentf9481b08220d7dc1ff21e296a330ee8b721b44e4 (diff)
spi/acpi: avoid spurious matches during slave enumeration
In the new SPI ACPI slave enumeration code, we use the value of lookup.max_speed_khz as a flag to decide whether a match occurred. However, doing so only makes sense if we initialize its value to zero beforehand, or otherwise, random junk from the stack will cause spurious matches. So zero initialize the lookup struct fully, and only set the non-zero members explicitly. Fixes: 4c3c59544f33 ("spi/acpi: enumerate all SPI slaves in the namespace") Cc: Mika Westerberg <mika.westerberg@linux.intel.com> Cc: andy.shevchenko@gmail.com Cc: masahisa.kojima@linaro.org Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Jarkko Nikula <jarkko.nikula@linux.intel.com> Cc: linux-acpi@vger.kernel.org Cc: Lukas Wunner <lukas@wunner.de> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt')
0 files changed, 0 insertions, 0 deletions