]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:01 +0000 (13:41 -0700)
commitf05ef06f31e1c6840f3cc1d69f1d3fef252601c7
treea8a1bf47206e936611570aee0953d6f5b9f1c8af
parent5f53a1e9cf1f3d44ef269c60ea979d719716d1cf
spi: dw: fix kernel crash due to NULL pointer dereference

commit 08a707b87874eaaa0f336ab604ecd6e5e9f286dd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-dw.c