From: Andy Shevchenko Date: Mon, 2 Mar 2015 18:15:58 +0000 (+0200) Subject: spi: dw-mid: avoid potential NULL dereference X-Git-Tag: omap-for-v4.1/wl12xx-dt~37^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9dafb27c84412fe4b17c3b94cc4ffeef5df1833;p=pandora-kernel.git spi: dw-mid: avoid potential NULL dereference When DMA descriptor allocation fails we should not try to assign any fields in the bad descriptor. The patch adds the necessary checks for that. Fixes: 7063c0d942a1 (spi/dw_spi: add DMA support) Signed-off-by: Andy Shevchenko Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed