OSDN Git Service

drm/radeon/radeon_device.c: move a dereference below a NULL test
authorDarren Jenkins <darrenrjenkins@gmail.com>
Wed, 30 Dec 2009 01:18:30 +0000 (12:18 +1100)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Jan 2010 03:56:06 +0000 (13:56 +1000)
commit875c186620e017e62b773c93e46af21bb704fe6b
tree56c7a77d40b9c5f780f636f5e4aa425b31897fd7
parent3655d54af8dd85788c3e5088387469703a0f8f12
drm/radeon/radeon_device.c: move a dereference below a NULL test

If a NULL value is possible, the dereference should only occur after the
NULL test.

Coverity CID: 13335

Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_device.c