spi: rockchip: check return value of dmaengine_prep_slave_sg
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 9 Mar 2016 08:11:15 +0000 (16:11 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Mar 2016 09:10:18 +0000 (16:10 +0700)
commitea98491133439773b69345eb9a314fc5f15e07a4
tree17a8d78602a10a7bc664eaf7bc20dee6a3cbadb1
parent0277e01aebc8895198a4717ccaf7e4fcf39ada78
spi: rockchip: check return value of dmaengine_prep_slave_sg

We should check return value of dmaengine_prep_slave_sg, otherwise
we take risk of null pointer.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c