Re: [PATCH][drm-next] drm/i915: Check for allocation failure

2017-05-19 Thread Chris Wilson
On Fri, May 19, 2017 at 06:56:17PM +0100, Colin King wrote: > From: Colin Ian King > > The memory allocation for C is not being null checked and hence we > could end up with a null pointer dereference. Fix this with a null > pointer check. (I really should have noticed this when I was fixing an >

[PATCH][drm-next] drm/i915: Check for allocation failure

2017-05-19 Thread Colin King
From: Colin Ian King The memory allocation for C is not being null checked and hence we could end up with a null pointer dereference. Fix this with a null pointer check. (I really should have noticed this when I was fixing an earlier issue.) Detected by CoverityScan, CID#1436406 ("Dereference nu