linux-pinenote/drivers/gpu/drm/nouveau/nvkm/subdev/instmem
Alexandre Courbot df16896b86 drm/nouveau/instmem/gk20a: fix crash during error path
If a memory allocation fails when using the DMA allocator,
gk20a_instobj_dtor_dma() will be called on the failed instmem object.
At this time, node->handle might not be NULL despite the call to
dma_alloc_attrs() having failed. node->cpuaddr is the right member to
check for such a failure, so use it instead.

Reported-by: Vince Hsu <vinceh@nvidia.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-04-14 17:00:49 +10:00
..
base.c drm/nouveau/instmem: namespace + nvidia gpu names (no binary change) 2015-01-22 12:17:55 +10:00
gk20a.c drm/nouveau/instmem/gk20a: fix crash during error path 2015-04-14 17:00:49 +10:00
Kbuild drm/nouveau/instmem/gk20a: move memory allocation to instmem 2015-04-14 17:00:42 +10:00
nv04.c drm/nouveau/instmem: namespace + nvidia gpu names (no binary change) 2015-01-22 12:17:55 +10:00
nv04.h drm/nouveau/instmem: namespace + nvidia gpu names (no binary change) 2015-01-22 12:17:55 +10:00
nv40.c drm/nouveau/instmem: namespace + nvidia gpu names (no binary change) 2015-01-22 12:17:55 +10:00
nv50.c drm/nouveau/instmem: namespace + nvidia gpu names (no binary change) 2015-01-22 12:17:55 +10:00
priv.h drm/nouveau/instmem: namespace + nvidia gpu names (no binary change) 2015-01-22 12:17:55 +10:00