mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 20:03:37 +08:00
s390x/pci: fix length in sei_nt2 event
The sei_nt2 event must contain the length of the event. Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com> Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Message-Id: <1426164834-38648-7-git-send-email-jfrei@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
parent
7b527b86eb
commit
d3321fc755
@ -44,6 +44,7 @@ int chsc_sei_nt2_get_event(void *res)
|
||||
QTAILQ_REMOVE(&s->pending_sei, sei_cont, link);
|
||||
nt2_res->nt = 2;
|
||||
nt2_res->cc = sei_cont->cc;
|
||||
nt2_res->length = cpu_to_be16(sizeof(ChscSeiNt2Res));
|
||||
switch (sei_cont->cc) {
|
||||
case 1: /* error event */
|
||||
eccdf = (PciCcdfErr *)nt2_res->ccdf;
|
||||
|
Loading…
Reference in New Issue
Block a user