Hans de Goede df0b2ce823 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>
2016-07-14 21:49:27 +01:00
2015-03-25 14:20:43 +00:00
2013-04-17 15:28:13 +01:00
2015-11-19 10:37:42 +00:00
2016-05-04 12:34:37 +01:00
2014-06-13 09:31:50 +01:00
2014-06-25 11:34:48 +01:00
2016-05-04 12:34:37 +01:00
2015-06-09 20:46:12 +01:00
2014-06-25 11:34:48 +01:00
2009-09-28 20:03:39 -07:00

xf86-video-intel
Open-source X.org graphics driver for Intel graphics
https://01.org/linuxgraphics/

What is xf86-video-intel
------------------------
The xf86-video-intel module is an open-source 2D graphics driver for
the X Window System as implemented by X.org. It supports a variety of
Intel graphics chipsets including:

	i810/i810e/i810-dc100,i815,
	i830M,845G,852GM,855GM,865G,
	915G/GM,945G/GM/GME,946GZ
	G/GM/GME/Q965,
	G/Q33,G/Q35,G41,G/Q43,G/GM/Q45
	PineView-M (Atom N400 series)
	PineView-D (Atom D400/D500 series)
	Intel(R) HD Graphics: 2000-6000,
	Intel(R) Iris(TM) Graphics: 5100/6100, and
	Intel(R) Iris(TM) Pro Graphics: 5200/6200/P6300.

Where to get more information about the driver
----------------------------------------------
The primary source of information about this and other open-source
drivers for Intel graphics is:

	https://01.org/linuxgraphics/

Documentation specific to the xf86-video-intel driver including
possible configuration options for the xorg.conf file can be found in
the intel(4) manual page. After installing the driver this
documentation can be read with the following command:

	man intel

Mailing list for communication with users and developers of
xf86-video-intel:

	intel-gfx@lists.freedesktop.org

	Note: Subscription is required before posting, but anyone is
	free to subscribe. See instructions (and archives) here:

	http://lists.freedesktop.org/mailman/listinfo/intel-gfx

To report bugs encountered with the driver, see:

	https://01.org/linuxgraphics/documentation/how-report-bugs

To see bugs that are targeted to be fixed in the next release:

	https://bugs.freedesktop.org/show_bug.cgi?id=intel-2d-release
Description
No description provided
Readme 21 MiB
Languages
C 98.6%
M4 0.5%
Makefile 0.5%
Meson 0.3%
Roff 0.1%