aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorRoger Quadros <[email protected]>2016-08-15 07:47:39 +0000
committerBrian Norris <[email protected]>2016-08-29 19:54:39 +0000
commita93295a7e118b5c58391906e47183775b1eb7cb1 (patch)
tree1a7e73c36ab3aae28dc4ae967c974f40a72b0046 /net/switchdev/switchdev.c
parentLinux 4.8-rc1 (diff)
downloadkernel-a93295a7e118b5c58391906e47183775b1eb7cb1.tar.gz
kernel-a93295a7e118b5c58391906e47183775b1eb7cb1.zip
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 <[email protected]> Signed-off-by: Roger Quadros <[email protected]> Acked-by: Boris Brezillon <[email protected]> Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions