From f13d1a8a801dae552ef495c84a223280586a9f67 Mon Sep 17 00:00:00 2001 From: Martyn Welch Date: Tue, 24 Oct 2017 08:27:40 +0200 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- drivers/vme/vme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/vme') 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; } /* -- cgit v1.2.3-58-ga151