OSDN Git Service

gallium/winsys/kms: Fix double refcount when importing from prime FD (v2)
authorTomasz Figa <tfiga@chromium.org>
Tue, 2 Aug 2016 10:46:25 +0000 (19:46 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 24 Aug 2016 13:39:22 +0000 (14:39 +0100)
commit0aa6a818ef60e01f304987fe07ac1370d68d38b1
tree5c3fd1e2e26418790c83a678539d04c0208c968d
parentb4959e17f18aff68465f4b3445b6a53ee0227b16
gallium/winsys/kms: Fix double refcount when importing from prime FD (v2)

Currently the code creates a display target struct with refcount field
initialized to 1 and then the caller again increments it, leading to
a leaked reference. Let's remove the unnecessary increment.

v2: Split from one big patch into four fixing one thing at a time.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c