Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175224
b: refs/heads/master
c: a5c330f
h: refs/heads/master
v: v3
  • Loading branch information
Martyn Welch authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 48543be commit 5b0212e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 58e507987b285f3df99f839c79da3985555ac220
refs/heads/master: a5c330fe8b2f1e17133190e0b297a710c5a4de04
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vme/vme.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ int vme_dma_list_add(struct vme_dma_list *list, struct vme_dma_attr *src,
return -EINVAL;
}

if (mutex_trylock(&(list->mtx))) {
if (!mutex_trylock(&(list->mtx))) {
printk("Link List already submitted\n");
return -EINVAL;
}
Expand Down Expand Up @@ -922,7 +922,7 @@ int vme_dma_list_free(struct vme_dma_list *list)
return -EINVAL;
}

if (mutex_trylock(&(list->mtx))) {
if (!mutex_trylock(&(list->mtx))) {
printk("Link List in use\n");
return -EINVAL;
}
Expand Down Expand Up @@ -955,7 +955,7 @@ int vme_dma_free(struct vme_resource *resource)

ctrlr = list_entry(resource->entry, struct vme_dma_resource, list);

if (mutex_trylock(&(ctrlr->mtx))) {
if (!mutex_trylock(&(ctrlr->mtx))) {
printk("Resource busy, can't free\n");
return -EBUSY;
}
Expand Down

0 comments on commit 5b0212e

Please sign in to comment.