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

2020-01-23 Thread Chris Wilson
Quoting Colin King (2020-01-23 15:14:06) > From: Colin Ian King > > Currently if the call to function context_get_vm_rcu returns > a null pointer for vm then the error exit path via label err_put > will call i915_vm_put on the null vm, causing a null pointer > dereference. Fix this by adding a n

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

2020-01-23 Thread Colin King
From: Colin Ian King Currently if the call to function context_get_vm_rcu returns a null pointer for vm then the error exit path via label err_put will call i915_vm_put on the null vm, causing a null pointer dereference. Fix this by adding a null check on vm and returning without calling the i91