drm/nouveau/fb: fix null derefs in nv49 and nv4e init
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 9 Aug 2013 21:25:54 +0000 (17:25 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 21 Aug 2013 01:35:53 +0000 (11:35 +1000)
commit6284bf41b97fb36ed96b664a3c23b6dc3661f5f9
treed7663149c8bfdb5ad62a489ea0179e58b600e4d4
parent7a7da592cbb22a1d360638dbecc393470c5effe3
drm/nouveau/fb: fix null derefs in nv49 and nv4e init

Commit dceef5d87 (drm/nouveau/fb: initialise vram controller as pfb
sub-object) moved some code around and introduced these null derefs.
pfb->ram is set to the new ram object outside of this ctor.

Reported-by: Ronald Uitermark <ronald645@gmail.com>
Tested-by: Ronald Uitermark <ronald645@gmail.com>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/fb/ramnv49.c
drivers/gpu/drm/nouveau/core/subdev/fb/ramnv4e.c