From: Dan Williams Date: Wed, 13 Nov 2013 18:15:42 +0000 (-0800) Subject: ioatdma: fix sed pool selection X-Git-Tag: v3.13-rc1~29^2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d48b9b5d80e3aa38a5161565398b1e48a650573;p=pandora-kernel.git ioatdma: fix sed pool selection The array to lookup the sed pool based on the number of sources (pq16_idx_to_sedi) is 16 entries and expects a max source index. However, we pass the total source count which runs off the end of the array when src_cnt == 16. The minimal fix is to just pass src_cnt-1, but given we know the source count is > 8 we can just calculate the sed pool by (src_cnt - 2) >> 3. Cc: Dave Jiang Cc: Acked-by: Dave Jiang Signed-off-by: Dan Williams --- Reading git-diff-tree failed