Re: [PATCH] drm/i915/display: fix missing null check on allocated dsb object

2020-06-30 Thread Jani Nikula
On Tue, 16 Jun 2020, Colin Ian King wrote: > On 16/06/2020 12:54, Dan Carpenter wrote: >> On Tue, Jun 16, 2020 at 12:42:21PM +0100, Colin King wrote: >>> From: Colin Ian King >>> >>> Currently there is no null check for a failed memory allocation >>> on the dsb object and without this a null

Re: [PATCH] drm/i915/display: fix missing null check on allocated dsb object

2020-06-16 Thread Dan Carpenter
On Tue, Jun 16, 2020 at 12:42:21PM +0100, Colin King wrote: > From: Colin Ian King > > Currently there is no null check for a failed memory allocation > on the dsb object and without this a null pointer dereference > error can occur. Fix this by adding a null check. > > Note: added a drm_err

Re: [PATCH] drm/i915/display: fix missing null check on allocated dsb object

2020-06-16 Thread Colin Ian King
On 16/06/2020 12:54, Dan Carpenter wrote: > On Tue, Jun 16, 2020 at 12:42:21PM +0100, Colin King wrote: >> From: Colin Ian King >> >> Currently there is no null check for a failed memory allocation >> on the dsb object and without this a null pointer dereference >> error can occur. Fix this by

[PATCH] drm/i915/display: fix missing null check on allocated dsb object

2020-06-16 Thread Colin King
From: Colin Ian King Currently there is no null check for a failed memory allocation on the dsb object and without this a null pointer dereference error can occur. Fix this by adding a null check. Note: added a drm_err message in keeping with the error message style in the function.