[PATCH libdrm] Fix memory leak with drmModeGetConnectorCurrent()

2016-01-07 Thread Ville Syrjälä
On Tue, Dec 15, 2015 at 02:05:45PM +, Chris Wilson wrote: > On Tue, Dec 15, 2015 at 03:59:28PM +0200, ville.syrjala at linux.intel.com > wrote: > > From: Ville Syrjälä > > > > drmModeGetConnectorCurrent() must provide temporary storage for the > > kernel to fill in at least one mode (askin

[PATCH libdrm] Fix memory leak with drmModeGetConnectorCurrent()

2015-12-15 Thread Ville Syrjälä
On Tue, Dec 15, 2015 at 02:05:45PM +, Chris Wilson wrote: > On Tue, Dec 15, 2015 at 03:59:28PM +0200, ville.syrjala at linux.intel.com > wrote: > > From: Ville Syrjälä > > > > drmModeGetConnectorCurrent() must provide temporary storage for the > > kernel to fill in at least one mode (askin

[PATCH libdrm] Fix memory leak with drmModeGetConnectorCurrent()

2015-12-15 Thread ville.syrj...@linux.intel.com
From: Ville Syrjälä drmModeGetConnectorCurrent() must provide temporary storage for the kernel to fill in at least one mode (asking for !=0 modes is how you prevent the heavyweight probe in the kernel). Currently we malloc that temp storage but we fail to free it before overwriting the pointer

[PATCH libdrm] Fix memory leak with drmModeGetConnectorCurrent()

2015-12-15 Thread Chris Wilson
On Tue, Dec 15, 2015 at 03:59:28PM +0200, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > drmModeGetConnectorCurrent() must provide temporary storage for the > kernel to fill in at least one mode (asking for !=0 modes is how > you prevent the heavyweight probe in the kernel).