]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/nouveau: Fix potential memory leak in nouveau_drm_load()
authorLyude Paul <lyude@redhat.com>
Thu, 23 Aug 2018 01:40:06 +0000 (21:40 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 10 Oct 2018 23:54:10 +0000 (09:54 +1000)
commitc4cee69a4497d9c6ad8868d63568b30e50cac9e9
treea0cd5f3f571bcf560f08aa2d101b4126a833119d
parente15e4c13e5b77e8b8e8c5e6d23831b1180249788
drm/nouveau: Fix potential memory leak in nouveau_drm_load()

We forget to free drm in all instances of failure, and additionally also
forget to destroy the master client if the other client fails
initialization.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c