diff options
Diffstat (limited to 'drivers/gpu/drm')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fbdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c index 1ace63e2ff22..632ebcf2165f 100644 --- a/drivers/gpu/drm/omapdrm/omap_fbdev.c +++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c | |||
| @@ -303,7 +303,8 @@ void omap_fbdev_free(struct drm_device *dev) | |||
| 303 | fbdev = to_omap_fbdev(priv->fbdev); | 303 | fbdev = to_omap_fbdev(priv->fbdev); |
| 304 | 304 | ||
| 305 | /* unpin the GEM object pinned in omap_fbdev_create() */ | 305 | /* unpin the GEM object pinned in omap_fbdev_create() */ |
| 306 | omap_gem_unpin(fbdev->bo); | 306 | if (fbdev->bo) |
| 307 | omap_gem_unpin(fbdev->bo); | ||
| 307 | 308 | ||
| 308 | /* this will free the backing object */ | 309 | /* this will free the backing object */ |
| 309 | if (fbdev->fb) | 310 | if (fbdev->fb) |
