]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: pcc: Don't access an unmapped memory address space
authorShanker Donthineni <shankerd@codeaurora.org>
Wed, 6 Apr 2016 17:49:24 +0000 (12:49 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Apr 2016 23:25:28 +0000 (01:25 +0200)
commitc0ce4103f5e1557562cec6adc6f9d6eb17b90251
tree1ed872b04c4eef0066efd80d7a92c591499c9850
parent67c7cef9afcc953045b9e27d1d6c5acdc94a2150
mailbox: pcc: Don't access an unmapped memory address space

The acpi_pcc_probe() may end up accessing memory outside of the PCCT
table space causing the kernel panic(). Increment the pcct_entry
pointer after parsing 'HW-reduced Communications Subspace' to fix
the problem. This change also enables the parsing of subtable at
index 0.

Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
Acked-by: Ashwin Chaugule <ashwin.chaugule@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/mailbox/pcc.c