summaryrefslogtreecommitdiffstats
path: root/mm/mm_init.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2013-11-13 19:15:42 +0100
committerDan Williams <dan.j.williams@intel.com>2013-11-14 20:04:41 +0100
commit5d48b9b5d80e3aa38a5161565398b1e48a650573 (patch)
tree8f0f05bdae0c7c676f327c33c173384cdd64c11c /mm/mm_init.c
parentioatdma: Fix bug in selftest after removal of DMA_MEMSET. (diff)
downloadlinux-5d48b9b5d80e3aa38a5161565398b1e48a650573.tar.xz
linux-5d48b9b5d80e3aa38a5161565398b1e48a650573.zip
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>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions