]> git.baikalelectronics.ru Git - 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)
commit61e3f2e77b6882c8dca33818b465bc80bdbd9c07
treea0cd5f3f571bcf560f08aa2d101b4126a833119d
parent1d895206474f2525153f478db60bba4d7a9aa1c3
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