summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartyn Welch <martyn@welchs.me.uk>2017-10-24 08:27:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-08 14:26:50 +0100
commitf13d1a8a801dae552ef495c84a223280586a9f67 (patch)
tree0808fe43e79d4ff8e63d56f7995761a110e0801b
parentf53459c00871a7c3db5b69b49d840ca9d497a695 (diff)
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: Martyn Welch <martyn@welchs.me.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/vme/vme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vme/vme.c b/drivers/vme/vme.c
index d0ce50d56019..81246221a13b 100644
--- a/drivers/vme/vme.c
+++ b/drivers/vme/vme.c
@@ -1194,7 +1194,7 @@ int vme_dma_list_free(struct vme_dma_list *list)
if (!mutex_trylock(&list->mtx)) {
printk(KERN_ERR "Link List in use\n");
- return -EINVAL;
+ return -EBUSY;
}
/*