Re: [Nouveau] [PATCH] drm/gk20a/fb: fix NULL dereference

2014-05-09 Thread Ben Skeggs
On Fri, May 9, 2014 at 5:57 PM, Alexandre Courbot wrote: > gk20a_ram_put() can be called with a NULL nouveau_mem in case of error. > Handle that case the way is it done in other RAM drivers. Got it, thanks! > > Signed-off-by: Alexandre Courbot > --- > drivers/gpu/drm/nouveau/core/subdev/fb/ramg

[PATCH] drm/gk20a/fb: fix NULL dereference

2014-05-09 Thread Alexandre Courbot
gk20a_ram_put() can be called with a NULL nouveau_mem in case of error. Handle that case the way is it done in other RAM drivers. Signed-off-by: Alexandre Courbot --- drivers/gpu/drm/nouveau/core/subdev/fb/ramgk20a.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/nouveau/c