]> git.baikalelectronics.ru Git - uboot.git/commit
spi: atcspi200: avoid NULL dereference
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 11:41:43 +0000 (12:41 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 16 May 2018 13:48:41 +0000 (19:18 +0530)
commit38c81b8b1c41aadd4637276a25a0fd807977a605
tree629170d1614804b65e18f73a0de9457b0a93964d
parent47a377842148f6b1f93a4442c97b0294508ebd5d
spi: atcspi200: avoid NULL dereference

For SPI_XFER_BEGIN | SPI_XFER_END the code sets data_out = NULL.
In the debug statement we should not dereference this value.
As we do not transfer any data the debug statement is not needed in this
case anyway.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/spi/atcspi200_spi.c