]> git.karo-electronics.de Git - linux-beck.git/commit
spi: davinci: check for NULL buffer pointer before using it
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Thu, 19 Aug 2010 11:34:25 +0000 (17:04 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:28 +0000 (18:38 +0530)
commit53d454a170e86594af1d27be820e678a582af751
tree437b09d173aa8ee0479ba7c8e7e04875fbdafb13
parentb7ab24a0da96c8fc6d551ea87e82692299df6ac6
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 <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/spi/davinci_spi.c