From: Clemens Ladisch Date: Mon, 15 Mar 2010 12:20:32 +0000 (+0100) Subject: firewire: core: fw_iso_resource_manage: fix error handling X-Git-Tag: v2.6.34-rc3~28^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf36df6bfb49fd265a39f676bfc9718029fef160;p=pandora-kernel.git 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 Signed-off-by: Stefan Richter --- Reading git-diff-tree failed