From: Russell King - ARM Linux Date: Mon, 3 Jan 2011 22:42:55 +0000 (+0000) Subject: ARM: PL08x: fix fill_bytes calculation X-Git-Tag: v2.6.38-rc1~25^2~11^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f638b4f313e345bf02700910e581bccf71212f5;p=pandora-kernel.git ARM: PL08x: fix fill_bytes calculation The number of bytes we want to fill into any LLI is the minimum of: - number of bytes remaining in the transfer - number of bytes we can transfer in a single LLI - number of bytes we can transfer without overflowing the source boundary - number of bytes we can transfer without overflowing the destination boundary The minimum of the first two is already calculated (target_len). We limit the boundary calculations to this number of bytes, which will then give us the number of bytes we can place into this LLI. Signed-off-by: Russell King Acked-by: Linus Walleij Signed-off-by: Dan Williams --- Reading git-diff-tree failed