From: Clemens Ladisch Date: Mon, 12 Apr 2010 08:35:05 +0000 (+0200) Subject: firewire: core: fix retries calculation in iso manage_channel() X-Git-Tag: v2.6.34-rc6~64^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a1f0a0e3d871e3d3e08a1429009992151becda8;p=pandora-kernel.git firewire: core: fix retries calculation in iso manage_channel() If there is a permanent error condition when communicating with the IRM, after the sixth error, the retry variable will be decremented to -1. If, in this case, the bits in channels_mask are not yet exhausted, the next channel is retried 2^32 times. To fix this, check that retry is never decremented beyond zero. Signed-off-by: Clemens Ladisch Signed-off-by: Stefan Richter --- Reading git-diff-tree failed