]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/kms: Fix failure path for creating DP connectors
authorLyude Paul <lyude@redhat.com>
Thu, 26 May 2022 20:43:13 +0000 (16:43 -0400)
committerLyude Paul <lyude@redhat.com>
Thu, 14 Jul 2022 20:33:25 +0000 (16:33 -0400)
commitdea831915b5b12e83f47152462e2a1071687f77c
tree8d426b331dea84ebfa1fdb9e6c5069a4c3886b61
parent593c3f78926a01097a25f3466927afdb22ac67cf
drm/nouveau/kms: Fix failure path for creating DP connectors

It looks like that when we moved nouveau over to using drm_dp_aux_init()
and registering it's aux bus during late connector registration, we totally
forgot to fix the failure codepath in nouveau_connector_create() - as it
still seems to assume that drm_dp_aux_init() can fail (it can't).

So, let's fix that and also add a missing check to ensure that we've
properly allocated nv_connector->aux.name while we're at it.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: David Airlie <airlied@linux.ie>
Fixes: 765333894d8c ("drm/nouveau/kms/nv50-: Move AUX adapter reg to connector late register/early unregister")
Cc: <stable@vger.kernel.org> # v5.14+
Link: https://patchwork.freedesktop.org/patch/msgid/20220526204313.656473-1-lyude@redhat.com
drivers/gpu/drm/nouveau/nouveau_connector.c