Skip to content

Commit 95d1fba

Browse files
committed
Merge remote-tracking branch 'remotes/kraxel/tags/fixes-20200716-pull-request' into staging
fixes: usb storage regression, vfio display ramfb bug # gpg: Signature made Thu 16 Jul 2020 10:30:58 BST # gpg: using RSA key 4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <[email protected]>" [full] # gpg: aka "Gerd Hoffmann <[email protected]>" [full] # gpg: aka "Gerd Hoffmann (private) <[email protected]>" [full] # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/fixes-20200716-pull-request: usb: fix storage regression vfio: fix use-after-free in display Signed-off-by: Peter Maydell <[email protected]>
2 parents 175788d + 4084e35 commit 95d1fba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hw/usb/dev-storage.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,7 @@ static void usb_msd_handle_data(USBDevice *dev, USBPacket *p)
546546
}
547547
}
548548
}
549-
if (p->actual_length < p->iov.size && (p->short_not_ok ||
550-
s->scsi_len >= p->ep->max_packet_size)) {
549+
if (p->actual_length < p->iov.size && s->mode == USB_MSDM_DATAIN) {
551550
DPRINTF("Deferring packet %p [wait data-in]\n", p);
552551
s->packet = p;
553552
p->status = USB_RET_ASYNC;

hw/vfio/display.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ static void vfio_display_region_update(void *opaque)
405405
if (!plane.drm_format || !plane.size) {
406406
if (dpy->ramfb) {
407407
ramfb_display_update(dpy->con, dpy->ramfb);
408+
dpy->region.surface = NULL;
408409
}
409410
return;
410411
}

0 commit comments

Comments
 (0)