From: Andy Shevchenko Date: Wed, 27 Aug 2014 16:26:08 +0000 (+0300) Subject: spi: dw: fix kernel crash due to NULL pointer dereference X-Git-Tag: omap-fixes-against-v3.17-rc3~18^2~1^2^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08a707b87874eaaa0f336ab604ecd6e5e9f286dd;p=pandora-kernel.git 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 Signed-off-by: Mark Brown Cc: --- Reading git-diff-tree failed