]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: core: fw_iso_resource_manage: fix error handling
authorClemens Ladisch <clemens@ladisch.de>
Mon, 15 Mar 2010 12:20:32 +0000 (13:20 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 15 Mar 2010 13:29:44 +0000 (14:29 +0100)
commit539b14bdb0928c747353c8244f83961fe72b35a2
tree684051014d4d516a5510797e4b887a06d412cb65
parentebf10f2bec788b6e50ec638e3c2bd096a59f3b8e
firewire: core: fw_iso_resource_manage: fix error handling

If the bandwidth allocation fails, the error must be returned in
*channel regardless of whether the channel allocation succeeded.
Checking for c >= 0 is not correct if no channel allocation was
requested, in which case this part of the code is reached with
c == -EINVAL.

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