summaryrefslogtreecommitdiff
path: root/Documentation/EDID
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2013-11-13 22:15:42 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-04 23:05:36 +0400
commit1bb87f93deb4958aecbd4d60b62f8426f297646b (patch)
tree60fc672baf93de6fba6f9c8250e51a6e938c76cb /Documentation/EDID
parentb9c4b04c214848774fbbee4d946aa39ecb8f1010 (diff)
downloadlinux-1bb87f93deb4958aecbd4d60b62f8426f297646b.tar.xz
ioatdma: fix sed pool selection
commit 5d48b9b5d80e3aa38a5161565398b1e48a650573 upstream. 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> Acked-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/EDID')
0 files changed, 0 insertions, 0 deletions