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>
This commit is contained in:
Martyn Welch 2017-10-24 08:27:40 +02:00 committed by Greg Kroah-Hartman
parent f53459c008
commit f13d1a8a80

View File

@ -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;
}
/*