[PATCH] drm/msm: Fix possible null dereference on failure of get_pages()

2018-04-04 Thread Ben Hutchings
Commit 62e3a3e342af changed get_pages() to initialise msm_gem_object::pages before trying to initialise msm_gem_object::sgt, so that put_pages() would properly clean up pages in the failure case. However, this means that put_pages() now needs to check that msm_gem_object::sgt is not null before

Re: [PATCH] drm/msm: Fix possible null dereference on failure of get_pages()

2018-04-03 Thread Jordan Crouse
On Tue, Apr 03, 2018 at 11:38:45PM +0100, Ben Hutchings wrote: > Commit 62e3a3e342af changed get_pages() to initialise > msm_gem_object::pages before trying to initialise msm_gem_object::sgt, > so that put_pages() would properly clean up pages in the failure > case. > > However, this means that