drm/radeon/radeon_connectors.c: add a NULL test before dereference
commitd8a7f79246a447722bd90c2c4ba3ca068b2aa4c0
authorDarren Jenkins <darrenrjenkins@gmail.com>
Wed, 30 Dec 2009 01:22:55 +0000 (30 12:22 +1100)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Jan 2010 03:48:25 +0000 (7 13:48 +1000)
tree9b10e57c5ce6635b4048964a4d9107de1373a470
parent5eb226132f53d5ec36ce4e7ff9d6b49cceb50f3d
drm/radeon/radeon_connectors.c: add a NULL test before dereference

The encoder variable can be NULL in this function so I believe it should
be checked before dereference.

Coverity CID: 13253

[airlied: extremely unlikely to happen]

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