]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
spi: Always check complete callback before calling it
authorAxel Lin <axel.lin@ingics.com>
Wed, 2 Apr 2014 14:21:04 +0000 (22:21 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 3 Apr 2014 10:13:38 +0000 (11:13 +0100)
commit0a6d38795a405c49ea0012f04173613382def58c
tree41cca48cd41bdf3c9034b8f59ff5f4079f9bdaf2
parent455c6fdbd219161bd09b1165f11699d6d73de11c
spi: Always check complete callback before calling it

Since commit 1e25cd4729bd "spi: Do not require a completion", this checking is
required to prevent NULL pointer dereference.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-fsl-espi.c
drivers/spi/spi-fsl-spi.c
drivers/spi/spi-mpc512x-psc.c
drivers/spi/spi-mpc52xx-psc.c
drivers/spi/spi-mpc52xx.c
drivers/spi/spi-sh.c
drivers/spi/spi-txx9.c