summaryrefslogtreecommitdiff
path: root/RELEASING
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-07-12 11:02:15 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2016-07-14 21:49:27 +0100
commitdf0b2ce823e8bc9e994875ce349cf1da4cf8e402 (patch)
tree1718ddf0e4df867978632853e18f16c42e2ac9ea /RELEASING
parent6d8a19910a89bfa91c3029c1ec5a8c2bdefb6c25 (diff)
intel: Fix fd (and mem) leak when intel_scrn_create fails
The probe functions in intel_module.c call intel_open_device() before calling intel_scrn_create(), but if the later fails because of e.g. an allocation failure they were not cleaning up the resources claimed by intel_open_device(), esp. leaking the fd is a problem because this breaks the fallback to the modesetting driver. This commit fixes this by adding a intel_close_device() cleanup function and calling that when intel_scrn_create() fails. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'RELEASING')
0 files changed, 0 insertions, 0 deletions