diff options
author | Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 2009-03-22 17:42:48 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 2009-03-22 21:46:25 +0100 |
commit | b771b6a6c3f4a92ccfc2ad427cb2cb11a47cdfd1 (patch) | |
tree | b8566191b2f36b0cca38bc42a8827f3f595b7d7c | |
parent | 4455b5f532c112ca3a109624392a705b17bf0fcc (diff) |
ttm: Fix a bo vm error path.
Reported by Jerome Glisse.
-rw-r--r-- | linux-core/ttm/ttm_bo_vm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux-core/ttm/ttm_bo_vm.c b/linux-core/ttm/ttm_bo_vm.c index 6f2ddd96..3a89b3e0 100644 --- a/linux-core/ttm/ttm_bo_vm.c +++ b/linux-core/ttm/ttm_bo_vm.c @@ -391,8 +391,7 @@ int ttm_bo_mmap(struct file *filp, struct vm_area_struct *vma, if (unlikely(bo == NULL)) { printk(KERN_ERR "Could not find buffer object to map.\n"); - ret = -EINVAL; - goto out_unref; + return -EINVAL; } driver = bo->bdev->driver; |