Commit f51c5b6e authored by Eric Anholt's avatar Eric Anholt Committed by Dave Airlie
Browse files

drm: Avoid use-before-null-test on dev in drm_cleanup().

Signed-off-by: default avatarEric Anholt <>
Signed-off-by: default avatarDave Airlie <>
parent f1acec93
......@@ -294,8 +294,6 @@ EXPORT_SYMBOL(drm_init);
static void drm_cleanup(struct drm_device * dev)
struct drm_driver *driver = dev->driver;
if (!dev) {
......@@ -330,7 +328,7 @@ static void drm_cleanup(struct drm_device * dev)
if (drm_core_check_feature(dev, DRIVER_MODESET))
if (driver->driver_features & DRIVER_GEM)
if (dev->driver->driver_features & DRIVER_GEM)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment