Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}

	/*