Skip to content

Commit 3f1082e

Browse files
committed
Merge remote-tracking branch 'remotes/aperard/tags/pull-xen-20200407' into staging
Xen queue for QEMU 5.0 - Fix for xen-block. - A fix for a Coverity false positive in xen-usb. - Update MAINTAINERS to add xen-usb.c to Xen section. # gpg: Signature made Tue 07 Apr 2020 16:21:16 BST # gpg: using RSA key F80C006308E22CFD8A92E7980CF5572FD7FB55AF # gpg: issuer "[email protected]" # gpg: Good signature from "Anthony PERARD <[email protected]>" [marginal] # gpg: aka "Anthony PERARD <[email protected]>" [marginal] # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 5379 2F71 024C 600F 778A 7161 D8D5 7199 DF83 42C8 # Subkey fingerprint: F80C 0063 08E2 2CFD 8A92 E798 0CF5 572F D7FB 55AF * remotes/aperard/tags/pull-xen-20200407: MAINTAINERS: Add xen-usb.c to Xen section xen-block: Fix uninitialized variable hw/usb/xen-usb.c: Pass struct usbback_req* to usbback_packet_complete() Signed-off-by: Peter Maydell <[email protected]>
2 parents 2f37b02 + 758af9c commit 3f1082e

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ F: hw/9pfs/xen-9p*
440440
F: hw/char/xen_console.c
441441
F: hw/display/xenfb.c
442442
F: hw/net/xen_nic.c
443+
F: hw/usb/xen-usb.c
443444
F: hw/block/xen*
444445
F: hw/block/dataplane/xen*
445446
F: hw/xen/

hw/block/xen-block.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ static XenBlockIOThread *xen_block_iothread_create(const char *id,
860860
XenBlockIOThread *iothread = g_new(XenBlockIOThread, 1);
861861
Error *local_err = NULL;
862862
QDict *opts;
863-
QObject *ret_data;
863+
QObject *ret_data = NULL;
864864

865865
iothread->id = g_strdup(id);
866866

hw/usb/xen-usb.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,11 @@ static int32_t usbback_xlat_status(int status)
347347
return -ESHUTDOWN;
348348
}
349349

350-
static void usbback_packet_complete(USBPacket *packet)
350+
static void usbback_packet_complete(struct usbback_req *usbback_req)
351351
{
352-
struct usbback_req *usbback_req;
352+
USBPacket *packet = &usbback_req->packet;
353353
int32_t status;
354354

355-
usbback_req = container_of(packet, struct usbback_req, packet);
356-
357355
QTAILQ_REMOVE(&usbback_req->stub->submit_q, usbback_req, q);
358356

359357
status = usbback_xlat_status(packet->status);
@@ -566,7 +564,7 @@ static void usbback_dispatch(struct usbback_req *usbback_req)
566564

567565
usb_handle_packet(usbback_req->stub->dev, &usbback_req->packet);
568566
if (usbback_req->packet.status != USB_RET_ASYNC) {
569-
usbback_packet_complete(&usbback_req->packet);
567+
usbback_packet_complete(usbback_req);
570568
}
571569
return;
572570

@@ -993,7 +991,7 @@ static void xen_bus_complete(USBPort *port, USBPacket *packet)
993991

994992
usbif = usbback_req->usbif;
995993
TR_REQ(&usbif->xendev, "\n");
996-
usbback_packet_complete(packet);
994+
usbback_packet_complete(usbback_req);
997995
}
998996

999997
static USBPortOps xen_usb_port_ops = {

0 commit comments

Comments
 (0)