drm/nouveau: move dereferences after null checks
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sat, 30 Jan 2010 14:41:00 +0000 (15:41 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 10 Feb 2010 23:52:00 +0000 (09:52 +1000)
commitdd19e44b28b12f7ea59ebb54d8ea18054da7f9d1
treeb41add6f15ebf6b7666f45b1b3d7002b3f29036b
parentb1d37aa0aa43c5bf857364093ab2191acd37f2ec
drm/nouveau: move dereferences after null checks

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_object.c
drivers/gpu/drm/nouveau/nouveau_sgdma.c
drivers/gpu/drm/nouveau/nv50_crtc.c