VME: Return -EBUSY when DMA list in use
authorMartyn Welch <martyn@welchs.me.uk>
Tue, 24 Oct 2017 06:27:40 +0000 (08:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 13:26:50 +0000 (14:26 +0100)
commitf13d1a8a801dae552ef495c84a223280586a9f67
tree0808fe43e79d4ff8e63d56f7995761a110e0801b
parentf53459c00871a7c3db5b69b49d840ca9d497a695
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>
drivers/vme/vme.c