Commit f13d1a8a authored by Martyn Welch's avatar Martyn Welch Committed by Greg Kroah-Hartman

VME: Return -EBUSY when DMA list in use

The VME subsystem currently returns -EBUSY when trying to free a DMA
resource that is busy, but returns -EINVAL when trying to free a DMA list
that is in use. Switch to returning -EBUSY when trying to free a DMA list
that is in use for consistency and correctness.
Signed-off-by: default avatarMartyn Welch <martyn@welchs.me.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f53459c0
...@@ -1194,7 +1194,7 @@ int vme_dma_list_free(struct vme_dma_list *list) ...@@ -1194,7 +1194,7 @@ int vme_dma_list_free(struct vme_dma_list *list)
if (!mutex_trylock(&list->mtx)) { if (!mutex_trylock(&list->mtx)) {
printk(KERN_ERR "Link List in use\n"); printk(KERN_ERR "Link List in use\n");
return -EINVAL; return -EBUSY;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment