pseries: Add more parameter validation in RTAS time of day functions
commitbbade20633a6b4ed7333e03a76038eda98950946
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 6 Feb 2015 03:55:48 +0000 (6 14:55 +1100)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Mar 2015 13:59:56 +0000 (9 14:59 +0100)
treeae2aaeaa59643f0c71cd9d159bd299e32a1bc050
parent12f421745cd763742377c7134f48fa12fb889ee3
pseries: Add more parameter validation in RTAS time of day functions

Currently, the RTAS time of day functions only partially validate the
number of parameters they receive and return.  Because of how the
parameters are used, this is unlikely to lead to a crash, but it's messy.

This patch adds the missing checks.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_rtc.c