Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175221
b: refs/heads/master
c: 8be9226
h: refs/heads/master
i:
  175219: 8026665
v: v3
  • Loading branch information
Martyn Welch authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent e783e27 commit c275f0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59c2290428dd93a4117aa453fc4c2be38da288c0
refs/heads/master: 8be9226c8f686c6dd2bae0a7ed4f5795e89d32d8
14 changes: 8 additions & 6 deletions trunk/drivers/staging/vme/vme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ int vme_lm_set(struct vme_resource *resource, unsigned long long lm_base,

/* XXX Check parameters */

return lm->parent->lm_set(lm, lm_base, aspace, cycle);
return bridge->lm_set(lm, lm_base, aspace, cycle);
}
EXPORT_SYMBOL(vme_lm_set);

Expand Down Expand Up @@ -1271,16 +1271,18 @@ void vme_lm_free(struct vme_resource *resource)

lm = list_entry(resource->entry, struct vme_lm_resource, list);

if (mutex_trylock(&(lm->mtx))) {
printk(KERN_ERR "Resource busy, can't free\n");
return;
}
mutex_lock(&(lm->mtx));

/* XXX Check to see that there aren't any callbacks still attached */
/* XXX
* Check to see that there aren't any callbacks still attached, if
* there are we should probably be detaching them!
*/

lm->locked = 0;

mutex_unlock(&(lm->mtx));

kfree(resource);
}
EXPORT_SYMBOL(vme_lm_free);

Expand Down

0 comments on commit c275f0e

Please sign in to comment.