Selaa lähdekoodia

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>
Martyn Welch 7 vuotta sitten
vanhempi
commit
f13d1a8a80
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      drivers/vme/vme.c

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