commit | 7b9199fa658b51ebe7b32fadc593f93f78d8bc85 | [log] [tgz] |
---|---|---|
author | Mateusz Kulikowski <mateusz.kulikowski@gmail.com> | Mon Apr 04 19:55:58 2016 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon Apr 11 20:48:22 2016 -0400 |
tree | 8a4b72727ea48a370be8a63bdc1e11c6506450d4 | |
parent | 8422703b3af8c34d3808ed64a442145c09aa0a9d [diff] |
spmi: Fix sandbox spmi driver memory corruption There is off-by-one error in sandbox_emul_gpio that causes segfault of certain tests. EMUL_GPIO_REG_END is the address of last valid (emulated) register. This patch fixed this (by adding one more element to emulated register array). Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com> Tested-by: Stephen Warren <swarren@nvidia.com>