]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commit169b38373fd4a7d47cac0e5fdeeae90b8c076f32
tree1ed872b04c4eef0066efd80d7a92c591499c9850
parentf387e5b901adb8352fcdf031bb2c539e390b92e2
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