summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2016-01-28 03:30:06 (GMT)
committerBen Skeggs <bskeggs@redhat.com>2016-03-14 00:11:06 (GMT)
commit1b82111faebc24427c76b83738566bda7f315225 (patch)
treec74aeffd1b68e36ed39ad74af71e775c880a872f /drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
parent0529a46a7ae038761d2860b15c8d025cec448e88 (diff)
downloadlinux-1b82111faebc24427c76b83738566bda7f315225.tar.xz
drm/nouveau/device/tegra: fix uninitialized IRQ number
nvkm_device_tegra_new initializes the irq member of the Tegra device to -1 in order to signal that it is uninitialized. However, nvkm_device_tegra_fini tests it against 0 to check whether an IRQ has been allocated or not. This leads to free_irq being called on -1 during device initialization. Fix this by using 0 as the uninitialized value everywhere. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c')
0 files changed, 0 insertions, 0 deletions