Re: [Intel-gfx] [PATCH][next] drm/i915/selftests: fix null pointer dereference on pointer data

2019-10-09 Thread Chris Wilson
Quoting Colin King (2019-10-09 11:00:24) > From: Colin Ian King > > In the case where data fails to be allocated the error exit path is > via label 'out' where data is dereferenced in a for-loop. Fix this > by exiting via the label 'out_file' instead to avoid the null pointer > dereference. > >

[Intel-gfx] [PATCH][next] drm/i915/selftests: fix null pointer dereference on pointer data

2019-10-09 Thread Colin King
From: Colin Ian King In the case where data fails to be allocated the error exit path is via label 'out' where data is dereferenced in a for-loop. Fix this by exiting via the label 'out_file' instead to avoid the null pointer dereference. Addresses-Coverity: ("Dereference after null check") Fix