Re: [PATCH][next] drm: fix null pointer dereference on null state pointer

2018-12-24 Thread Daniel Vetter
On Sat, Dec 22, 2018 at 01:00:46PM +, Colin King wrote: > From: Colin Ian King > > In the case where state cannot be allocated, the current exit path via > label 'out' will dereference the null state pointer when calling > drm_atomic_state_put. Fix this by adding a new error exit label and >

[PATCH][next] drm: fix null pointer dereference on null state pointer

2018-12-22 Thread Colin King
From: Colin Ian King In the case where state cannot be allocated, the current exit path via label 'out' will dereference the null state pointer when calling drm_atomic_state_put. Fix this by adding a new error exit label and jumping to this to avoid the drm_atomic_state_put. Detected by