aboutsummaryrefslogtreecommitdiff
path: root/include/op-panel.h
AgeCommit message (Collapse)AuthorFilesLines
2016-06-30fsp/op-panel: Fix out of bounds array access and #define display dimensionsSuraj Jitindar Singh1-0/+4
In the function __opal_write_oppanel() coverity complains about an out of bounds array access. While the pointer is never actually dereferenced, this isn't immediately obvious from the code. Additionally the number and length of the lines on the operator panel display are hard coded into the function. While we are here we might as well move these into a #define statement. Rework the code in __opal_write_oppanel() where the message is copied into the buffer so that coverity won't complain about an out of bounds array access and so that it is line number and length agnostic (now relying on the #defined values). Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-07-02Initial commit of Open Source releaseBenjamin Herrenschmidt1-0/+67
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>