s390x/pci: add length checking for pci sclp handlers
commit3b40ea2957683bc7bea1a358f25045e6184077cf
authorYi Min Zhao <zyimin@linux.vnet.ibm.com>
Wed, 4 May 2016 07:56:53 +0000 (4 15:56 +0800)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 17 May 2016 13:50:29 +0000 (17 15:50 +0200)
tree24a3b5a447226423cf8617dd64816b87dde53a5a
parenta6d9d4f26afc2c2fcfe6a89f0766371a60143d5a
s390x/pci: add length checking for pci sclp handlers

The configure/deconfigure sclp commands need a SCCB with a length of
at least 16. Indicate in the response code if this is not fulfilled.

Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-pci-bus.c