]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu/gfx7: fix broken condition check
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Jun 2016 22:26:24 +0000 (18:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Jun 2016 22:26:24 +0000 (18:26 -0400)
Wrong operator.

Reported-by: David Binderman <linuxdev.baldrick@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c

index 8c6ad1e72f02f190aef89342b4bce6b6de1e765e..fc8ff4d3ccf8fbbc2ad2855e2f01e92aceea5bd5 100644 (file)
@@ -4833,7 +4833,7 @@ static int gfx_v7_0_eop_irq(struct amdgpu_device *adev,
        case 2:
                for (i = 0; i < adev->gfx.num_compute_rings; i++) {
                        ring = &adev->gfx.compute_ring[i];
-                       if ((ring->me == me_id) & (ring->pipe == pipe_id))
+                       if ((ring->me == me_id) && (ring->pipe == pipe_id))
                                amdgpu_fence_process(ring);
                }
                break;