]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5c9c8229f5364113f9b4544b4ed626c8ba47bd0
treed7663149c8bfdb5ad62a489ea0179e58b600e4d4
parent3e400b9997bc6cc117f4a3960b804d804f609b8b
drm/nouveau/fb: fix null derefs in nv49 and nv4e init

Commit 638dcbc8e (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