firewire: core: fw_iso_resource_manage: return -EBUSY when out of resources
authorClemens Ladisch <clemens@ladisch.de>
Mon, 12 Apr 2010 08:35:18 +0000 (10:35 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 19 Apr 2010 17:58:32 +0000 (19:58 +0200)
commitd6372b6e7c6142e6cc2108b3b850584cd7ade106
tree14ae5783465c1f987de1d33e5a2a70db71acbb0a
parent3a1f0a0e3d871e3d3e08a1429009992151becda8
firewire: core: fw_iso_resource_manage: return -EBUSY when out of resources

Returning -EIO for all errors would not allow clients to determine if
the resource allocation process itself failed, or if the resources are
not available.  (The latter information is needed by CMP to synchronize
restoring of overlayed connections after a bus reset.)

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-iso.c