Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86276921 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Ben Skeggs
Browse files

drm/nouveau/kms/nv50: add null check before pointer dereference



Add null check before dereferencing pointer asyc

Addresses-Coverity-ID: 1397932
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 28904eec
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2107,6 +2107,7 @@ nv50_head_atomic_check(struct drm_crtc *crtc, struct drm_crtc_state *state)
					asyc->set.dither = true;
			}
		} else {
			if (asyc)
				asyc->set.mask = ~0;
			asyh->set.mask = ~0;
		}