Skip to content

Commit 227f66d

Browse files
author
Ben Skeggs
committed
drm/nouveau/kms/nv50: fix oops during DP IRQ handling on non-MST boards
Reported-by: Woody Suwalski <terraluna977@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Cc: stable@vger.kernel.org
1 parent 194d68d commit 227f66d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/gpu/drm/nouveau/nv50_display.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3265,11 +3265,14 @@ nv50_mstm = {
32653265
void
32663266
nv50_mstm_service(struct nv50_mstm *mstm)
32673267
{
3268-
struct drm_dp_aux *aux = mstm->mgr.aux;
3268+
struct drm_dp_aux *aux = mstm ? mstm->mgr.aux : NULL;
32693269
bool handled = true;
32703270
int ret;
32713271
u8 esi[8] = {};
32723272

3273+
if (!aux)
3274+
return;
3275+
32733276
while (handled) {
32743277
ret = drm_dp_dpcd_read(aux, DP_SINK_COUNT_ESI, esi, 8);
32753278
if (ret != 8) {

0 commit comments

Comments
 (0)