diff options
author | Roger Quadros <rogerq@ti.com> | 2016-08-15 10:47:39 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2016-08-29 12:54:39 -0700 |
commit | a93295a7e118b5c58391906e47183775b1eb7cb1 (patch) | |
tree | 1a7e73c36ab3aae28dc4ae967c974f40a72b0046 /Documentation | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
mtd: nand: omap2: Don't call dma_release_channel() if dma_request_chan() failed
dma_request_chan() can fail returning an error pointer. In this case
prevent calling dma_release_channel() to prevent a ERR_PTR() dereference.
As error path can be called even with no DMA configuration, info->dma can
be NULL so don't call dma_release_channel() for that case either.
Fixes: de3bfc4a1616: ("mtd: nand: omap2: fix return value check in omap_nand_probe()")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions