commit | 08a707b87874eaaa0f336ab604ecd6e5e9f286dd | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Wed Aug 27 19:26:08 2014 +0300 |
committer | Mark Brown <broonie@linaro.org> | Wed Aug 27 17:32:46 2014 +0100 |
tree | aad9b04c1993b91b8b5266ddb108f716b0542aab | |
parent | c9d5d6fe168fd45a4dfdd0116affe708789b4702 [diff] |
spi: dw: fix kernel crash due to NULL pointer dereference The obvious fix after the commit d9c73bb8a3a5 "spi: dw: add support for gpio controlled chip select". This patch fixes the issue by using locally defined temporary variable. Fixes: d9c73bb8a3a5 (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>