summaryrefslogtreecommitdiffstats
path: root/drivers/atm/zatm.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2017-07-30 20:10:44 +0200
committerVinod Koul <vinod.koul@intel.com>2017-08-09 08:09:16 +0200
commit7f5770678b2d0cc8f3ffbf7eb73410f2acba7925 (patch)
tree6b9f7f6bdda6fd66e90d12d6f51701bde4ea9cba /drivers/atm/zatm.c
parentLinux v4.13-rc1 (diff)
downloadlinux-7f5770678b2d0cc8f3ffbf7eb73410f2acba7925.tar.xz
linux-7f5770678b2d0cc8f3ffbf7eb73410f2acba7925.zip
dmaengine: tegra210-adma: fix of_irq_get() error check
of_irq_get() may return 0 as well as negative error number on failure, while the driver only checks for the negative values. The driver would then call request_irq(0, ...) in tegra_adma_alloc_chan_resources() and never get valid channel interrupt. Check for 'tdc->irq <= 0' instead and return -ENXIO from the driver's probe iff of_irq_get() returned 0. Fixes: f46b195799b5 ("dmaengine: tegra-adma: Add support for Tegra210 ADMA") Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Thierry Reding <treding@nvidia.com> Acked-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/atm/zatm.c')
0 files changed, 0 insertions, 0 deletions