Reserve space for control message payload (currently a port name).
Approved by: trasz (mentor) Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
892f0ab0ab
commit
f7b1d7f419
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308566
@ -600,7 +600,7 @@ vtcon_ctrl_event_enqueue(struct vtcon_softc *sc,
|
||||
|
||||
sglist_init(&sg, 2, segs);
|
||||
error = sglist_append(&sg, control,
|
||||
sizeof(struct virtio_console_control));
|
||||
sizeof(struct virtio_console_control) + VTCON_BULK_BUFSZ);
|
||||
KASSERT(error == 0, ("%s: error %d adding control to sglist",
|
||||
__func__, error));
|
||||
|
||||
@ -633,7 +633,8 @@ vtcon_ctrl_event_requeue(struct vtcon_softc *sc,
|
||||
{
|
||||
int error;
|
||||
|
||||
bzero(control, sizeof(struct virtio_console_control));
|
||||
bzero(control, sizeof(struct virtio_console_control) +
|
||||
VTCON_BULK_BUFSZ);
|
||||
|
||||
error = vtcon_ctrl_event_enqueue(sc, control);
|
||||
KASSERT(error == 0,
|
||||
|
Loading…
Reference in New Issue
Block a user