Mesa (master): gallium/pipe_loader: un-reference udev resources when we' re done with them.

Tom Stellard tstellar at kemper.freedesktop.org
Fri Nov 15 17:19:41 UTC 2013


Module: Mesa
Branch: master
Commit: 598f61ba28bcfd220104e18e89973768babeaac3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=598f61ba28bcfd220104e18e89973768babeaac3

Author: Aaron Watry <awatry at gmail.com>
Date:   Wed Nov  6 16:49:24 2013 -0600

gallium/pipe_loader: un-reference udev resources when we're done with them.

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

CC: "10.0" <mesa-stable at lists.freedesktop.org>

---

 .../auxiliary/pipe-loader/pipe_loader_drm.c        |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
index 339d7bf..927fb24 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
@@ -88,6 +88,9 @@ find_drm_pci_id(struct pipe_loader_drm_device *ddev)
               &ddev->base.u.pci.chip_id) != 2)
       goto fail;
 
+   udev_device_unref(device);
+   udev_unref(udev);
+
    return TRUE;
 
   fail:




More information about the mesa-commit mailing list