diff options
author | Kevin E Martin <kem@kem.org> | 2001-03-07 21:47:43 +0000 |
---|---|---|
committer | Kevin E Martin <kem@kem.org> | 2001-03-07 21:47:43 +0000 |
commit | 5d66ea4fb42214c09449bb4a45c359440757ae5c (patch) | |
tree | e7baf1af0f35b1e1277d2cb535390a31c7d4de20 /linux-core/drm_agpsupport.c | |
parent | 7e820fc7d89d06a11f448d7093469a0c765a84a6 (diff) |
- Merge from trunk into branchsarea-1-0-0-20010307
Diffstat (limited to 'linux-core/drm_agpsupport.c')
-rw-r--r-- | linux-core/drm_agpsupport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_agpsupport.c b/linux-core/drm_agpsupport.c index b070a59e6..dfd0d8fc2 100644 --- a/linux-core/drm_agpsupport.c +++ b/linux-core/drm_agpsupport.c @@ -77,7 +77,7 @@ int DRM(agp_acquire)(struct inode *inode, struct file *filp, drm_device_t *dev = priv->dev; int retcode; - if (dev->agp->acquired || !drm_agp->acquire) return -EINVAL; + if (!dev->agp|| dev->agp->acquired || !drm_agp->acquire) return -EINVAL; if ((retcode = drm_agp->acquire())) return retcode; dev->agp->acquired = 1; return 0; |