s390x: sclp: Report insufficient SCCB length
commit832be0d8a3bb7b54d64730f7a37d674f30ca0427
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Fri, 27 Sep 2019 13:33:23 +0000 (27 15:33 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Sep 2019 11:51:50 +0000 (30 13:51 +0200)
tree7dd690912652ffe110dc9323d668cada5be38939
parentd959f6cf502f37ddda91140a2e7a2e2b72de397e
s390x: sclp: Report insufficient SCCB length

Return the correct error code when the SCCB buffer is too small to
contain all of the output, for the Read SCP Information and
Read CPU Information commands.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com>
Message-Id: <1569591203-15258-5-git-send-email-imbrenda@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/s390x/sclp.c