diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-05-04 09:25:46 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-04 14:41:56 +0100 |
commit | 5de7ed0c980c4bcfd8ea5c0b84a61b76df7d6c08 (patch) | |
tree | 338afa10016cc76221713c59e58625d3d6444279 /drivers/atm | |
parent | 3d277b177918cd26215732fc23af0783ab4b37dd (diff) | |
download | linux-5de7ed0c980c4bcfd8ea5c0b84a61b76df7d6c08.tar.bz2 |
spi: rockchip: potential NULL dereference on error
We were calling dma_release_channel(rs->dma_tx.ch) when "rs->dma_tx.ch"
is potentially NULL. There is actually a call to that in the unwind
code at the bottom of the function so we can just re-arrange this a bit
and remove the call. Also there is no need to set rs->dma_tx.ch to
NULL on this error path.
Fixes: e4c0e06f949b ('spi: rockchip: fix probe deferral handling')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/atm')
0 files changed, 0 insertions, 0 deletions