]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw-pci: fix bug when regs left uninitialized
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 27 Aug 2014 13:21:12 +0000 (16:21 +0300)
committerMark Brown <broonie@linaro.org>
Wed, 27 Aug 2014 14:45:04 +0000 (15:45 +0100)
commitc3ea731bf7eae537184b48cc128fcb3248a0120a
treee68251982c04d9998e4de88ec8387569ebef7c85
parentf45f9587f1dd1e89dd1c89561c9572f777c5bcb7
spi: dw-pci: fix bug when regs left uninitialized

The commit 3c30b73e "spi: dw: use managed resources" changes drivers to use
managed functions, but seems wasn't properly tested in PCI case. The regs field
of struct dw_spi left uninitialized. Thus, kernel crashes when tries to access
to the SPI controller registers. This patch fixes the issue.

Fixes: 3c30b73e (spi: dw: use managed resources)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-dw-pci.c