From: Brian Niebuhr Date: Thu, 19 Aug 2010 11:34:25 +0000 (+0530) Subject: spi: davinci: check for NULL buffer pointer before using it X-Git-Tag: v2.6.38-rc1~454^2~6^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53d454a170e86594af1d27be820e678a582af751;p=pandora-kernel.git spi: davinci: check for NULL buffer pointer before using it In the davinci_spi_{tx|rx}_u{8|16}() functions, check for buffer pointer being valid before using it. While providing for better error checking, this change will help simplify code in the caller. Signed-off-by: Brian Niebuhr Tested-By: Michael Williamson Signed-off-by: Sekhar Nori --- Reading git-diff-tree failed