Dan Williams 5d48b9b5d8 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 <dave.jiang@intel.com>
Cc: <stable@vger.kernel.org>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2013-11-14 11:04:41 -08:00
..
2013-11-14 11:04:41 -08:00
2013-08-25 16:43:45 +05:30
2013-01-07 17:36:37 +01:00
2013-11-14 11:04:38 -08:00
2013-11-14 11:04:41 -08:00
2013-10-11 07:31:47 +05:30
2012-09-01 08:57:12 -07:00
2013-08-25 22:04:53 +05:30
2013-09-02 11:59:58 +05:30