[Intel-gfx] [PATCH xf86-video-intel] Fix fd (and mem) leak when intel_scrn_create fails

2016-05-12 Thread Hans de Goede
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 unsupported (new) pci-id they were not cleaning up the resources claimed by intel_open_device(), esp. leaking the fd is a problem because this breaks the

Re: [Intel-gfx] [PATCH xf86-video-intel] Fix fd (and mem) leak when intel_scrn_create fails

2016-04-25 Thread Timo Aaltonen
22.04.2016, 21:04, Hans de Goede kirjoitti: > 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 unsupported (new) pci-id they were not cleaning up the resources > claimed by intel_open_device(), esp.

[Intel-gfx] [PATCH xf86-video-intel] Fix fd (and mem) leak when intel_scrn_create fails

2016-04-22 Thread Hans de Goede
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 unsupported (new) pci-id they were not cleaning up the resources claimed by intel_open_device(), esp. leaking the fd is a problem because this breaks the