]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw: fix kernel crash due to NULL pointer dereference
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 27 Aug 2014 16:26:08 +0000 (19:26 +0300)
committerMark Brown <broonie@linaro.org>
Wed, 27 Aug 2014 16:32:46 +0000 (17:32 +0100)
commit128544709f2a04b40b8c439412bf426a1a716ff9
treeaad9b04c1993b91b8b5266ddb108f716b0542aab
parentc3ea731bf7eae537184b48cc128fcb3248a0120a
spi: dw: fix kernel crash due to NULL pointer dereference

The obvious fix after the commit f69b81c73e27 "spi: dw: add support for gpio
controlled chip select". This patch fixes the issue by using locally defined
temporary variable.

Fixes: f69b81c73e27 (spi: dw: add support for gpio controlled chip select)
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.c